slope 6.2.1
Loading...
Searching...
No Matches
slope::Timer Class Reference

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.
 

Detailed Description

Timer class for measuring elapsed time with high resolution.

Uses std::chrono::high_resolution_clock to provide precise timing measurements.

Definition at line 18 of file timer.h.

Member Function Documentation

◆ elapsed()

double slope::Timer::elapsed ( ) const

Returns the elapsed time in seconds since start() was called.

Returns
double Time elapsed in seconds with high precision

The documentation for this class was generated from the following file: