|
MADARA
3.2.3
|
Manages a timer for duration testing. More...
#include <Timer.h>
Public Member Functions | |
| template<typename PERIOD = std::chrono::nanoseconds> | |
| uint64_t | duration (void) const |
| Returns a duration in user-specified period. More... | |
| double | duration_ds (void) const |
| Returns a duration in seconds (double format) More... | |
| uint64_t | duration_ns (void) const |
| Returns a duration in nanoseconds. More... | |
| uint64_t | duration_s (void) const |
| Returns a duration in seconds. More... | |
| void | start (void) |
| Starts the timer. More... | |
| void | stop (void) |
| Stops the timer. More... | |
Private Attributes | |
| std::chrono::time_point< CLOCK > | end_ |
| the end of the timer duration More... | |
| std::chrono::time_point< CLOCK > | start_ |
| the start of the timer duration More... | |
Manages a timer for duration testing.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |