Clock

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

Members

Functions

getCurrentFps
uint getCurrentFps()

Returns the current framerate per seconds.

getElapsedTicks
uint getElapsedTicks()

Returns only the milliseconds since the last reset.

getElapsedTime
Time getElapsedTime()

Returns the elapsed Time since the last reset.

getFpsTime
float getFpsTime()

Returns the Time since the last Frame.

reset
void reset()

Reset the clock time

Static functions

getPerformanceCounter
ulong getPerformanceCounter()

Use this function to get the current value of the high resolution counter.

getPerformanceFrequency
ulong getPerformanceFrequency()

Use this function to get the count per second of the high resolution counter.

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

rschuett