StopWatch timing class.
More...
#include <util.hpp>
|
std::chrono::time_point< std::chrono::high_resolution_clock > | start_ |
| Start time. More...
|
|
std::chrono::time_point< std::chrono::high_resolution_clock > | stop_ |
| Stop time. More...
|
|
StopWatch timing class.
sw.start();
...
sw.stop();
double seconds = sw.getElapsedSecond();
Definition at line 54 of file util.hpp.
◆ StopWatch()
dodo::common::StopWatch::StopWatch |
( |
| ) |
|
|
inline |
◆ getElapsedSeconds()
double dodo::common::StopWatch::getElapsedSeconds |
( |
| ) |
const |
|
inline |
◆ restart()
double dodo::common::StopWatch::restart |
( |
| ) |
|
|
inline |
Stop the stopwatch, start the Stopwatch again and return the elapsed time since previous start.
- Returns
- the elapsed time in seconds.
Definition at line 84 of file util.hpp.
References start(), and stop().
◆ start()
void dodo::common::StopWatch::start |
( |
| ) |
|
|
inline |
◆ stop()
double dodo::common::StopWatch::stop |
( |
| ) |
|
|
inline |
◆ start_
std::chrono::time_point<std::chrono::high_resolution_clock> dodo::common::StopWatch::start_ |
|
private |
◆ stop_
std::chrono::time_point<std::chrono::high_resolution_clock> dodo::common::StopWatch::stop_ |
|
private |
The documentation for this class was generated from the following file: