Single timer class for measuring the length of time between function calls.
More...
#include <VTimer.h>
Single timer class for measuring the length of time between function calls.
◆ IsPaused()
bool VTimer::IsPaused |
( |
| ) |
|
- Returns
- True if the timer is currently paused.
◆ Microseconds()
uint64_t VTimer::Microseconds |
( |
| ) |
|
- Returns
- Time in microseconds. (Microsecond = 1/1000th of a millisecond)
◆ Milliseconds()
unsigned int VTimer::Milliseconds |
( |
| ) |
|
- Returns
- Time in milliseconds. (Millisecond = 1/1000th of a second)
◆ Restart()
float VTimer::Restart |
( |
| ) |
|
Restarts timer at 0.
- Returns
- The time in seconds before the function was called.
◆ Seconds()
float VTimer::Seconds |
( |
| ) |
|
◆ Update()
virtual float VTimer::Update |
( |
float |
dt | ) |
|
|
virtual |
Updates the time.
- Parameters
-
dt | Delta Time to increment the time by. |
- Returns
- The resulting time once updated.
Reimplemented in VTimerEvent.
The documentation for this class was generated from the following file:
- D:/Development/Libs/Vigilante-Game-Framework/VFrame/VTimer.h