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>
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 32 of file timings.h.
◆ Timer()
hpp::fcl::Timer::Timer |
( |
const bool |
start_on_construction = true | ) |
|
|
inline |
Default constructor for the timer.
- Parameters
-
[in] | start_on_construction | if true, the timer will be run just after the object is created |
Definition at line 42 of file timings.h.
◆ elapsed()
CPUTimes hpp::fcl::Timer::elapsed |
( |
| ) |
const |
|
inline |
◆ is_stopped()
bool hpp::fcl::Timer::is_stopped |
( |
| ) |
const |
|
inline |
◆ resume()
void hpp::fcl::Timer::resume |
( |
| ) |
|
|
inline |
◆ start()
void hpp::fcl::Timer::start |
( |
| ) |
|
|
inline |
◆ stop()
void hpp::fcl::Timer::stop |
( |
| ) |
|
|
inline |
◆ m_is_stopped
bool hpp::fcl::Timer::m_is_stopped |
|
protected |
◆ m_times
The documentation for this struct was generated from the following file: