YourGameLib
Loading...
Searching...
No Matches
Namespaces | Functions
time.cpp File Reference
#include <chrono>
#include "yourgame_internal/time.h"
Include dependency graph for time.cpp:

Namespaces

namespace  yourgame_internal
 
namespace  yourgame_internal::time
 
namespace  yourgame
 
namespace  yourgame::time
 time measure related functions
 

Functions

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