YourGameLib
Loading...
Searching...
No Matches
Functions
yourgame::time Namespace Reference

time measure related functions More...

Functions

double getClockPeriod ()
 returns time clock period [seconds] (clock precision)
 
double getDelta ()
 returns time delta [seconds] since last cycle
 
double getTime ()
 returns (monotonic) time duration [seconds] since init
 
void reset ()
 resets the timing so time retrieved by getTime() starts at 0 again
 

Detailed Description

time measure related functions

Function Documentation

◆ getClockPeriod()

double yourgame::time::getClockPeriod ( )

returns time clock period [seconds] (clock precision)

◆ getDelta()

double yourgame::time::getDelta ( )

returns time delta [seconds] since last cycle

◆ getTime()

double yourgame::time::getTime ( )

returns (monotonic) time duration [seconds] since init

◆ reset()

void yourgame::time::reset ( )

resets the timing so time retrieved by getTime() starts at 0 again