![]() |
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
#include <ticker.h>
Public Types | |
typedef uint64_t | ticks_t |
Number of ticks. | |
Public Member Functions | |
Ticker (ticks_t freq) | |
Initialize. | |
void | start () |
Start ticker. | |
ticks_t | elapsed () |
Returns number of ticks elapsed since start. If ticker is not started yet, it is started automatically. | |
void | wait (ticks_t ticks) |
Wait until the given number of ticks elapses since start. If ticker is not started yet, it is started automatically. | |
|
explicit |
Initialize.
freq
defines the number of ticks per second. ticks_t roc::core::Ticker::elapsed | ( | ) |
Returns number of ticks elapsed since start. If ticker is not started yet, it is started automatically.
void roc::core::Ticker::start | ( | ) |
Start ticker.
Wait until the given number of ticks elapses since start. If ticker is not started yet, it is started automatically.