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