11 typedef std::chrono::high_resolution_clock HighResolutionClock;
12 typedef std::chrono::duration<float, std::milli> milliseconds_type;
13 std::chrono::time_point<HighResolutionClock> m_Start;
24 m_Start = HighResolutionClock::now();
30 return std::chrono::duration_cast<milliseconds_type>(HighResolutionClock::now() - m_Start).count() / 1000.0f;
Timer()
Simple Initializer of the timer object that.
Definition: timer.h:16
Timer class to keep track of the time.
Definition: timer.h:8
Definition: audioclip.cpp:3
float elapsedTime()
The completion time in milli seconds since the first frame was renderer.
Definition: timer.h:28
void reset()
resets the timer to current time
Definition: timer.h:22