#include <ZE_ZTimer.h>
Inherits ZE::ZObject.
| Public Methods | |
| ZTimer (bool useZEngine=true) | |
| Constructs a new Timer. | |
| void | Reset () | 
| Reset Timer. | |
| void | Pause () | 
| Pause Timer. | |
| void | Unpause () | 
| Unpause Timer. | |
| Uint32 | GetTime () | 
| Get Time of Timer. | |
| bool | IsPaused () | 
| Get paused state. | |
| Protected Methods | |
| Uint32 | GetParentTime () | 
| Get time from parent timer. | |
| Protected Attributes | |
| bool | rPaused | 
| Paused / Unpaused state of Timer. | |
| bool | rUseZEngine | 
| Using ZEngine timer or SDL global timer. | |
| Uint32 | rPausedTime | 
| Total time this timer has been paused. | |
| Uint32 | rLastPause | 
| Time this Timer was paused. | |
| 
 | 
| Sets TimePaused to current ZEngine time if useZEngine is true, otherwise uses SDL timer. 
 | 
| 
 | 
| Protected method to get time from whichever timer is parent. 
 | 
| 
 | 
| Set Timer back to Zero, will also unpause timer if it was paused. | 
| 
 | 
| Pause the timer if it is unpaused. | 
| 
 | 
| Unpause the timer if it is paused. | 
| 
 | 
| Get current time accounting for time paused. 
 | 
| 
 | 
| Find out paused state of timer. 
 | 
 1.2.18
1.2.18