Time measurement class.
More...
#include <Timer.h>
◆ MyTimer()
Constructor.
Sets defalt values.
◆ get_time()
const std::string& MyTimer::get_time |
( |
| ) |
|
|
inline |
Gets time in format hh:mm:ss of seconds since start or between start and stop.
- Returns
- Time in string in format hh:mm:ss since start or between start and stop.
◆ start_clock()
void MyTimer::start_clock |
( |
| ) |
|
|
inline |
◆ stop_clock()
uint64_t MyTimer::stop_clock |
( |
| ) |
|
|
inline |
Stops clock and get number of seconds since start.
- Returns
- Number of seconds since start.
◆ old_time_str
std::string MyTimer::old_time_str |
|
private |
Last asked string value corresponding to old_value
◆ old_value
uint64_t MyTimer::old_value |
|
private |
◆ start
std::chrono::time_point<std::chrono::system_clock> MyTimer::start |
|
private |
◆ stopped
bool value representing if timer is stopped
The documentation for this class was generated from the following file: