30 using timepoint = std::chrono::time_point<std::chrono::steady_clock>;
54 timepoint now = std::chrono::steady_clock::now();
Handler for frametime computation.
timepoint last_tick
Time of the last tick.
Timer()
Calls tick() and sets frametime to zero.
void tick()
Counts frametime and sets last_tick variable to current time.
std::chrono::time_point< std::chrono::steady_clock > timepoint
float frametime
Duration of the last frame (in seconds).