A simple stopwatch.
More...
#include <spot/misc/timer.hh>
|
void | start () |
| Marks the start if the measurement. More...
|
|
double | stop () |
| Returns the elapsed duration in seconds. More...
|
|
|
typedef std::chrono::steady_clock | clock |
|
◆ start()
void spot::stopwatch::start |
( |
| ) |
|
|
inline |
Marks the start if the measurement.
◆ 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().
The documentation for this struct was generated from the following file: