Ticker.
More...
#include <ticker.h>
|
| Ticker (Ticks freq) |
| Initialize. More...
|
|
void | start () |
| Start ticker. More...
|
|
Ticks | elapsed () |
| Returns number of ticks elapsed since start. If ticker is not started yet, it is started automatically. More...
|
|
void | wait (Ticks ticks) |
| Wait until the given number of ticks elapses since start. If ticker is not started yet, it is started automatically. More...
|
|
Ticker.
Definition at line 23 of file ticker.h.
◆ Ticks
Number of ticks.
Definition at line 26 of file ticker.h.
◆ Ticker()
roc::core::Ticker::Ticker |
( |
Ticks |
freq | ) |
|
|
inlineexplicit |
Initialize.
Definition at line 31 of file ticker.h.
◆ elapsed()
Ticks roc::core::Ticker::elapsed |
( |
| ) |
|
|
inline |
Returns number of ticks elapsed since start. If ticker is not started yet, it is started automatically.
Definition at line 48 of file ticker.h.
◆ start()
void roc::core::Ticker::start |
( |
| ) |
|
|
inline |
Start ticker.
Definition at line 38 of file ticker.h.
◆ wait()
void roc::core::Ticker::wait |
( |
Ticks |
ticks | ) |
|
|
inline |
Wait until the given number of ticks elapses since start. If ticker is not started yet, it is started automatically.
Definition at line 59 of file ticker.h.
The documentation for this class was generated from the following file: