StopWatch

This class handles timer functions and the window class use these class to calculate the current fps.

Members

Functions

getCurrentFPS
uint getCurrentFPS(uint* frame_ms = null)

Returns the current framerate per seconds. If frame_ms is not null, the average ms per frame is stored there

getElapsedTicks
uint getElapsedTicks()

Returns only the milliseconds since the last reset.

getElapsedTime
Time getElapsedTime()

Returns the elapsed Time since the last reset.

reset
void reset()

Reset the clock time

Static functions

getTicks
uint getTicks()

Returns the milliseconds since the application was started.

getTime
Time getTime()

Returns the Time since the application was started.

wait
void wait(uint msecs)

Wait for msecs milliseconds, which means that the application freeze for this time.

Meta

Authors

Randy Schuett (rswhite4@googlemail.com)