A timer that ticks at a constant frequency and can be synchronized with.
Definition at line 52 of file SyncTimer.hpp.
| virtual nvxio::SyncTimer::~SyncTimer |
( |
| ) |
|
|
inlinevirtual |
| virtual void nvxio::SyncTimer::arm |
( |
double |
periodSeconds | ) |
|
|
pure virtual |
Starts the timer's ticking.
- Parameters
-
| [in] | periodSeconds | The time between ticks, in seconds. |
| virtual void nvxio::SyncTimer::synchronize |
( |
| ) |
|
|
pure virtual |
Waits until the timer's next unwaited-for tick.
If the timer has ticked at least once since the last call to synchronize, it returns immediately. Otherwise, it waits until the next tick.
The documentation for this class was generated from the following file: