MURE
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Timer Class Reference

#include <Timer.hxx>

Public Member Functions

void start ()
 start measurement
 
void stop ()
 Stop measurement.
 
void tick ()
 temporary start
 
void tock ()
 temporary stop
 
double TickTock ()
 returns temporary time between tick() and tock()
 
double elapsedMicroSeconds ()
 return elapsed time in mus since start (also before stop() was called)
 
double elapsedSeconds ()
 return elapsed time in s since start (also before stop() was called)
 

Private Attributes

std::chrono::time_point< std::chrono::high_resolution_clock > m_StartTime
 
std::chrono::time_point< std::chrono::high_resolution_clock > m_EndTime
 
std::chrono::time_point< std::chrono::high_resolution_clock > m_Tick
 
std::chrono::time_point< std::chrono::high_resolution_clock > m_Tock
 
bool m_bRunning = false
 
bool TickBeforeTock = false
 
bool TockAfterTick = false
 

Member Function Documentation

◆ elapsedMicroSeconds()

double Timer::elapsedMicroSeconds ( )
inline

return elapsed time in mus since start (also before stop() was called)

◆ elapsedSeconds()

double Timer::elapsedSeconds ( )
inline

return elapsed time in s since start (also before stop() was called)

◆ start()

void Timer::start ( )
inline

start measurement

◆ stop()

void Timer::stop ( )
inline

Stop measurement.

◆ tick()

void Timer::tick ( )
inline

temporary start

◆ TickTock()

double Timer::TickTock ( )
inline

returns temporary time between tick() and tock()

◆ tock()

void Timer::tock ( )
inline

temporary stop

Member Data Documentation

◆ m_bRunning

bool Timer::m_bRunning = false
private

◆ m_EndTime

std::chrono::time_point<std::chrono::high_resolution_clock> Timer::m_EndTime
private

◆ m_StartTime

std::chrono::time_point<std::chrono::high_resolution_clock> Timer::m_StartTime
private

◆ m_Tick

std::chrono::time_point<std::chrono::high_resolution_clock> Timer::m_Tick
private

◆ m_Tock

std::chrono::time_point<std::chrono::high_resolution_clock> Timer::m_Tock
private

◆ TickBeforeTock

bool Timer::TickBeforeTock = false
private

◆ TockAfterTick

bool Timer::TockAfterTick = false
private

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

MURE Project, documentation generated by Doxygen 1.9.7 - Fri Jan 19 2024