|
spot
2.1
|
A simple stopwatch. More...
#include <spot/misc/timer.hh>

Public Member Functions | |
| void | start () |
| Marks the start if the measurement. More... | |
| double | stop () |
| Returns the elapsed duration in seconds. More... | |
Protected Types | |
|
typedef std::chrono::high_resolution_clock | clock |
Protected Attributes | |
| clock::time_point | start_ |
A simple stopwatch.
|
inline |
Marks the start if the measurement.
|
inline |
Returns the elapsed duration in seconds.
May be called multiple times, and will always return the duration since the last call to start().
1.8.8