The SysTimeKeeper
Class Reference
Declaration
Public Member Functions Index
void | start () |
start a timer for this thread More... | |
void | stop () |
ends a timer for this thread, accumulate time difference since start More... | |
double | elapsedTime () const |
Private Member Attributes Index
std::map< std::thread::id, std::chrono::steady_clock::time_point > | m_startTimes |
double | m_elapsedTime = 0 |
std::mutex | m_mutex |
Public Static Functions Index
static SysTimeKeeper & | instance () |
Description
Helper class to keep time interval per thread
Definition at line 46 of file portable.cpp.
Public Member Functions
elapsedTime()
| inline |
Definition at line 73 of file portable.cpp.
Reference m_elapsedTime.
Referenced by Portable::getSysElapsedTime.
start()
| inline |
start a timer for this thread
Definition at line 51 of file portable.cpp.
References m_mutex and m_startTimes.
Referenced by AutoTimeKeeper::AutoTimeKeeper.
stop()
| inline |
ends a timer for this thread, accumulate time difference since start
Definition at line 57 of file portable.cpp.
References err, m_elapsedTime, m_mutex and m_startTimes.
Referenced by AutoTimeKeeper::~AutoTimeKeeper.
Private Member Attributes
m_elapsedTime
|
Definition at line 81 of file portable.cpp.
Referenced by elapsedTime and stop.
m_mutex
|
m_startTimes
|
Definition at line 80 of file portable.cpp.
Public Static Functions
instance()
| static |
Definition at line 49 of file portable.cpp.
Referenced by AutoTimeKeeper::AutoTimeKeeper, Portable::getSysElapsedTime and AutoTimeKeeper::~AutoTimeKeeper.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus by Doxygen 1.14.0.