Wasabi
Public Member Functions | List of all members
WTimer Class Reference

#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
 

Detailed Description

A timer can be used to to calculate elapsed times and can be controlled by starting, pausing and stopping it.

Member Function Documentation

◆ GetElapsedTime()

W_TIMER_TYPE WTimer::GetElapsedTime ( bool  bRecord = false) const

Get the time elapsed since this timer was and until it was paused.

Parameters
bRecordIf true, the returned elapsed time will be recorded for future GetElapsedTime() calls (for m_manualElapsedTime = true)
Returns
The elapsed time

◆ Pause()

void WTimer::Pause ( )

Pause the timer.

◆ Reset()

void WTimer::Reset ( )

Reset the timer. This will also stop it.

◆ Start()

void WTimer::Start ( )

Start the timer.


The documentation for this class was generated from the following file: