HGE::Timer_GetDelta

Returns time elapsed since last frame function call.

float Timer_GetDelta();

Return value

Returns time elapsed since last frame function call in seconds.

Remarks

Use Timer_GetDelta inside your frame function to synchronize with various execution speed and to detect periods of time. The timer resolution is 1 ms, so you'll never get a value less than 0.001.

Requirements

Header: hge.h
Import library: hge.lib

See also

Timer_GetTime, Timer_GetFPS