1 #ifndef CHRONOMETRE_HPP
2 #define CHRONOMETRE_HPP
29 std::vector<double> _timestamps;
30 std::chrono::_V2::system_clock::time_point _now;
32 void createTimestamp();
Chronometre class for measuring elapsed time between start and end timestamps. It provides methods to...
void start()
Start the chronometre.
void popLastChrono()
Remove the last recorded time interval (start and end timestamps).
std::string getTimeString() const
Get the elapsed time as a formatted string with appropriate units.
double getTimeMicroseconds() const
Get the elapsed time in microseconds between the last start and end timestamps.
double getTimeSeconds() const
Get the elapsed time in seconds between the last start and end timestamps.
double getTimeMilliseconds() const
Get the elapsed time in milliseconds between the last start and end timestamps.
double getTimeNanoseconds() const
Get the elapsed time in nanoseconds between the last start and end timestamps.
void end()
End the chronometre.