20 #ifndef GEOS_COMMON_STOPWATCH_HPP
21 #define GEOS_COMMON_STOPWATCH_HPP
49 : m_result( &resultVar )
70 m_start = std::chrono::steady_clock::now();
79 std::chrono::steady_clock::time_point
const end = std::chrono::steady_clock::now();
80 std::chrono::duration< real64 >
const diff = end - m_start;
87 std::chrono::steady_clock::time_point m_start;
Class defining a simple stopwatch for interval timing.
real64 elapsedTime()
Return elapsed time in seconds since zero() was last called.
void zero()
Zero out the timer.
Stopwatch(real64 &resultVar)
Constructor.
double real64
64-bit floating point type.