csVirtualClock Class Reference
This is an implementation of a virtual clock. More...
#include <virtclk.h>
Inheritance diagram for csVirtualClock:

Public Methods | |
| virtual void | Advance () |
| Advance the engine's virtual-time clock. | |
| virtual void | Suspend () |
| Suspend the engine's virtual-time clock. | |
| virtual void | Resume () |
| Resume the engine's virtual-time clock. | |
| virtual csTicks | GetElapsedTicks () const |
| Query the time elapsed between the two most recent invocations of Advance(). | |
| virtual csTicks | GetCurrentTicks () const |
| Returns the absolute time of the last call to Advance(). | |
Detailed Description
This is an implementation of a virtual clock.Using this clock you can easily keep track of elapsed and current time in a virtual setting.
Definition at line 31 of file virtclk.h.
Member Function Documentation
|
|
Advance the engine's virtual-time clock.
Implements iVirtualClock. |
|
|
Returns the absolute time of the last call to Advance().
Implements iVirtualClock. Definition at line 63 of file virtclk.h. References csTicks. |
|
|
Query the time elapsed between the two most recent invocations of Advance().
Implements iVirtualClock. Definition at line 59 of file virtclk.h. References csTicks. |
|
|
Resume the engine's virtual-time clock.
Implements iVirtualClock. Definition at line 54 of file virtclk.h. References csTicks. |
|
|
Suspend the engine's virtual-time clock.
Implements iVirtualClock. |
The documentation for this class was generated from the following file:
- csutil/virtclk.h
Generated for Crystal Space by doxygen 1.2.18
