◆ update()
void ZVision::Clock::update |
( |
| ) |
|
Updates _deltaTime with the difference between the current time and when the last update() was called.
◆ getDeltaTime()
uint32 ZVision::Clock::getDeltaTime |
( |
| ) |
const |
|
inline |
Get the delta time since the last frame. (The time between update() calls)
- Returns
- Delta time since the last frame (in milliseconds)
◆ getLastMeasuredTime()
uint32 ZVision::Clock::getLastMeasuredTime |
( |
| ) |
|
|
inline |
Get the time from the program starting to the last update() call
- Returns
- Time from program start to last update() call (in milliseconds)
◆ start()
void ZVision::Clock::start |
( |
| ) |
|
Un-pause the clock. Has no effect if the clock is already un-paused.
◆ stop()
void ZVision::Clock::stop |
( |
| ) |
|
Pause the clock. Any future delta times will take this pause into account. Has no effect if the clock is already paused.
The documentation for this class was generated from the following file: