Wasabi
|
#include <WTimer.hpp>
Public Member Functions | |
WTimer (float fUnit=W_TIMER_MILLISECONDS, bool bManualElapsedTime=false) | |
void | Start () |
void | Pause () |
void | Reset () |
W_TIMER_TYPE | GetElapsedTime (bool bRecord=false) const |
A timer can be used to to calculate elapsed times and can be controlled by starting, pausing and stopping it.
W_TIMER_TYPE WTimer::GetElapsedTime | ( | bool | bRecord = false | ) | const |
Get the time elapsed since this timer was and until it was paused.
bRecord | If true, the returned elapsed time will be recorded for future GetElapsedTime() calls (for m_manualElapsedTime = true) |
void WTimer::Pause | ( | ) |
Pause the timer.
void WTimer::Reset | ( | ) |
Reset the timer. This will also stop it.
void WTimer::Start | ( | ) |
Start the timer.