1 #ifndef PMPL_CLOCK_CLASS_H_
2 #define PMPL_CLOCK_CLASS_H_
33 void SetName(
const std::string& _name);
66 struct timeval m_startTimeval;
67 struct timeval m_usedTimeval;
69 bool m_running{
false};
71 std::string m_clockName;
Definition: ClockClass.h:18
void StopPrintClock(std::ostream &_os)
Call StopClock and PrintClock.
Definition: ClockClass.cpp:108
ClockClass()
Definition: ClockClass.cpp:52
double GetUSeconds() const
Get the recorded time in microseconds.
Definition: ClockClass.cpp:132
double GetSeconds() const
Get the recorded time in seconds.
Definition: ClockClass.cpp:123
void SetName(const std::string &_name)
Definition: ClockClass.cpp:59
void ClearClock()
Reset the clock.
Definition: ClockClass.cpp:66
void PrintClock(std::ostream &_os)
Definition: ClockClass.cpp:116
void StopClock()
Definition: ClockClass.cpp:88
void StartClock()
Definition: ClockClass.cpp:75