Timing::Timer Class Reference
#include <timer.h>
Inheritance diagram for Timing::Timer:
Detailed Description
A timer object is the most basic object for time measurement. More advanced timing classes often build on top of Timer.(C) 2006 Radon Labs GmbH
Public Member Functions | |
void | Start () |
start/continue the timer | |
void | Stop () |
stop the timer | |
void | Reset () |
reset the timer | |
bool | Running () const |
return true if currently running | |
Timing::Time | GetTime () const |
get current time in seconds | |
uint | GetTicks () const |
get current time in ticks |
Member Function Documentation
void Win32::Win32Timer::Start | ( | ) | [inherited] |
start/continue the timer
Start the timer. This will update the diffTime member to reflect the accumulated time when the timer was not running (basically the difference between this timer's time and the real system time).
void Win32::Win32Timer::Stop | ( | ) | [inherited] |
void Win32::Win32Timer::Reset | ( | ) | [inherited] |
reset the timer
Reset the timer so that will start counting at zero again.
bool Win32::Win32Timer::Running | ( | ) | const [inherited] |
return true if currently running
Returns true if the timer is currently running.
Timing::Time Win32::Win32Timer::GetTime | ( | ) | const [inherited] |
get current time in seconds
This returns the timer's current time in seconds.
uint Win32::Win32Timer::GetTicks | ( | ) | const [inherited] |
get current time in ticks
This returns the timer's current time in "ticks".