A simple stopwatch.
More...
#include <spot/misc/timer.hh>
|
| void | start () |
| | Marks the start of the measurement. More...
|
| |
| double | stop () |
| | Returns the elapsed duration in seconds. More...
|
| |
|
| typedef std::chrono::steady_clock | clock |
| | Clock type used by the stopwatch. More...
|
| |
◆ clock
Clock type used by the stopwatch.
◆ start()
| void spot::stopwatch::start |
( |
| ) |
|
|
inline |
◆ stop()
| double spot::stopwatch::stop |
( |
| ) |
|
|
inline |
Returns the elapsed duration in seconds.
May be called multiple times, and will always return the duration since the last call to start().
References start_.
Referenced by spot::process_timer::stop().
◆ start_
| clock::time_point spot::stopwatch::start_ |
|
protected |
The documentation for this struct was generated from the following file: