28 m_StartTime = std::chrono::high_resolution_clock::now();
34 m_EndTime = std::chrono::high_resolution_clock::now();
40 m_Tick = std::chrono::high_resolution_clock::now();
46 m_Tock = std::chrono::high_resolution_clock::now();
55 TT = std::chrono::duration_cast<std::chrono::microseconds>(
m_Tock -
m_Tick).count();
64 std::chrono::time_point<std::chrono::high_resolution_clock> endTime;
68 endTime = std::chrono::high_resolution_clock::now();
75 return std::chrono::duration_cast<std::chrono::microseconds>(endTime -
m_StartTime).count();
85 std::chrono::time_point<std::chrono::high_resolution_clock>
m_StartTime;
86 std::chrono::time_point<std::chrono::high_resolution_clock>
m_EndTime;
87 std::chrono::time_point<std::chrono::high_resolution_clock>
m_Tick;
88 std::chrono::time_point<std::chrono::high_resolution_clock>
m_Tock;
std::chrono::time_point< std::chrono::high_resolution_clock > m_Tock
Definition Timer.hxx:88
bool TickBeforeTock
Definition Timer.hxx:91
void start()
start measurement
Definition Timer.hxx:26
double TickTock()
returns temporary time between tick() and tock()
Definition Timer.hxx:50
void stop()
Stop measurement.
Definition Timer.hxx:32
double elapsedSeconds()
return elapsed time in s since start (also before stop() was called)
Definition Timer.hxx:78
void tick()
temporary start
Definition Timer.hxx:38
std::chrono::time_point< std::chrono::high_resolution_clock > m_Tick
Definition Timer.hxx:87
double elapsedMicroSeconds()
return elapsed time in mus since start (also before stop() was called)
Definition Timer.hxx:62
bool m_bRunning
Definition Timer.hxx:90
void tock()
temporary stop
Definition Timer.hxx:44
std::chrono::time_point< std::chrono::high_resolution_clock > m_EndTime
Definition Timer.hxx:86
std::chrono::time_point< std::chrono::high_resolution_clock > m_StartTime
Definition Timer.hxx:85
bool TockAfterTick
Definition Timer.hxx:92