Simple Game Graphics Library  1.0
Functions
Time reporting

Functions

float graphics::getDeltaTime ()
 
float graphics::getGlobalTime ()
 

Detailed Description

Function Documentation

◆ getDeltaTime()

float graphics::getDeltaTime ( )

Returns the time passed from the previous engine state update.

The function reports the time passed in miliseconds between the current internal state update and the previous one. If a user-defined update callback is provided, the time also corresponds to the interval between successive callback invocations.

Returns
the time elapsed from the previous engine update (coinsides also with the "frame" update interval) in miliseconds.

◆ getGlobalTime()

float graphics::getGlobalTime ( )

Reports the absolute application execution time.

The time starts counting from the call to create the window.

Returns
the elapsed time passed from the launch of the application window in miliseconds.