This class mimics the way "boost/timer/timer.hpp" operates while using the modern std::chrono library. Importantly, this class will only have an effect for C++11 and more. More...
#include <timings.h>
Public Member Functions | |
CPUTimes | elapsed () const |
bool | is_stopped () const |
void | resume () |
void | start () |
void | stop () |
Timer (const bool start_on_construction=true) | |
Default constructor for the timer. More... | |
Protected Attributes | |
bool | m_is_stopped |
CPUTimes | m_times |
This class mimics the way "boost/timer/timer.hpp" operates while using the modern std::chrono library. Importantly, this class will only have an effect for C++11 and more.
Definition at line 31 of file coal/timings.h.
|
inline |
Default constructor for the timer.
[in] | start_on_construction | if true, the timer will be run just after the object is created |
Definition at line 41 of file coal/timings.h.
|
inline |
Definition at line 45 of file coal/timings.h.
|
inline |
Definition at line 99 of file coal/timings.h.
|
inline |
Definition at line 90 of file coal/timings.h.
|
inline |
Definition at line 65 of file coal/timings.h.
|
inline |
Definition at line 76 of file coal/timings.h.
|
protected |
Definition at line 103 of file coal/timings.h.
|
protected |
Definition at line 102 of file coal/timings.h.