ST_engine  0.3-ALPHA
Public Member Functions | List of all members
timer Class Reference

A timer used for keeping track of time in the main loop. More...

#include <timer.hpp>

Public Member Functions

 timer ()
 
double time_since_start () const
 

Detailed Description

A timer used for keeping track of time in the main loop.

Uses a std::chrono::high_resolution_clock internally to provide quite accurate timekeeping.

Definition at line 19 of file timer.hpp.

Constructor & Destructor Documentation

◆ timer()

timer::timer ( )

Initializes the timer with the current time.

Definition at line 15 of file timer.cpp.

Member Function Documentation

◆ time_since_start()

double timer::time_since_start ( ) const
Returns
The elapsed time since the initialization of the timer.

Definition at line 22 of file timer.cpp.


The documentation for this class was generated from the following files: