Doxygen
|
Classes | |
struct | TimeData |
Public Member Functions | |
void | start () |
start a timer for this thread | |
void | stop () |
ends a timer for this thread, accumulate time difference since start | |
double | elapsedTime () const |
Static Public Member Functions | |
static SysTimeKeeper & | instance () |
Private Attributes | |
std::map< std::thread::id, std::chrono::steady_clock::time_point > | m_startTimes |
double | m_elapsedTime = 0 |
std::mutex | m_mutex |
Helper class to keep time interval per thread
Definition at line 46 of file portable.cpp.
|
inline |
Definition at line 73 of file portable.cpp.
References m_elapsedTime.
Referenced by Portable::getSysElapsedTime().
|
static |
Definition at line 85 of file portable.cpp.
Referenced by AutoTimeKeeper::AutoTimeKeeper(), Portable::getSysElapsedTime(), and AutoTimeKeeper::~AutoTimeKeeper().
|
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().
|
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 |
Definition at line 81 of file portable.cpp.
Referenced by elapsedTime(), and stop().
|
private |
Definition at line 82 of file portable.cpp.
|
private |
Definition at line 80 of file portable.cpp.