![]() |
Public API Reference |
#include <virtclk.h>
Inheritance diagram for csVirtualClock:
Public Methods | |
virtual void | Advance () |
Advance the engine's virtual-time clock. More... | |
virtual void | Suspend () |
Suspend the engine's virtual-time clock. More... | |
virtual void | Resume () |
Resume the engine's virtual-time clock. More... | |
virtual csTicks | GetElapsedTicks () const |
Query the time elapsed between the two most recent invocations of Advance(). More... | |
virtual csTicks | GetCurrentTicks () const |
Returns the absolute time of the last call to Advance(). More... |
Using this clock you can easily keep track of elapsed and current time in a virtual setting.
Definition at line 30 of file csutil/virtclk.h.
|
Advance the engine's virtual-time clock.
Implements iVirtualClock. |
|
Returns the absolute time of the last call to Advance().
Implements iVirtualClock. Definition at line 62 of file csutil/virtclk.h. References csTicks. |
|
Query the time elapsed between the two most recent invocations of Advance().
Implements iVirtualClock. Definition at line 58 of file csutil/virtclk.h. References csTicks. |
|
Resume the engine's virtual-time clock.
Implements iVirtualClock. Definition at line 53 of file csutil/virtclk.h. References csTicks. |
|
Suspend the engine's virtual-time clock.
Implements iVirtualClock. Definition at line 49 of file csutil/virtclk.h. |