12#ifndef ROC_CORE_TICKER_H_
13#define ROC_CORE_TICKER_H_
Base class for non-copyable objects.
Shared ownership intrusive pointer.
void wait(ticks_t ticks)
Wait until the given number of ticks elapses since start. If ticker is not started yet,...
ticks_t elapsed()
Returns number of ticks elapsed since start. If ticker is not started yet, it is started automaticall...
void start()
Start ticker.
uint64_t ticks_t
Number of ticks.
Ticker(ticks_t freq)
Initialize.
int64_t nanoseconds_t
Nanoseconds.