Go to the documentation of this file.
26 #ifndef TESSERACT_COMMON_STOPWATCH_H
27 #define TESSERACT_COMMON_STOPWATCH_H
39 using Clock = std::chrono::steady_clock;
68 #endif // TESSERACT_COMMON_TIMER_H
void stop()
Stop the timer.
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
std::chrono::steady_clock Clock
std::chrono::time_point< Clock > end_time_
std::chrono::time_point< Clock > start_time_
double elapsedSeconds() const
Get the elapsed time in seconds.
#define TESSERACT_COMMON_IGNORE_WARNINGS_POP
double elapsedMilliseconds() const
Get the elapsed time in milliseconds.
void start()
Start the timer.
A simple stopwatch class leveraging chrono high resolution clock.
tesseract_common
Author(s): Levi Armstrong
autogenerated on Sun May 18 2025 03:01:40