![]() |
slope 6.2.1
|
Timer class for measuring elapsed time with high resolution. More...
#include <timer.h>
Public Member Functions | |
| void | start () |
| Starts the timer by recording the current time point. | |
| void | pause () |
| Pauses the timer. | |
| void | resume () |
| Resumes the timer after a pause. | |
| double | elapsed () const |
| Returns the elapsed time in seconds since start() was called. | |
Timer class for measuring elapsed time with high resolution.
Uses std::chrono::high_resolution_clock to provide precise timing measurements.
| double slope::Timer::elapsed | ( | ) | const |
Returns the elapsed time in seconds since start() was called.