13static_assert(Stopwatch::Clock::is_steady,
14 "Stopwatch::Clock is suitable for measuring real-time intervals");
21Stopwatch::Clock::duration
47 debugs(1, 7,
"period " <<
resumes_ <<
" ran for " << runtime.count());
Clock::duration total() const
std::chrono::steady_clock Clock
the underlying time measuring mechanism
void pause()
ends the current measurement period if needed; requires prior resume()
uint64_t resumes_
the total number of resume() calls
bool running() const
whether we are currently measuring time (i.e. between resume() and pause())
Clock::time_point runStart_
when the current period was initiated
Clock::duration subtotal_
the sum of all finished periods
uint64_t pauses_
the total number of pause() calls
#define debugs(SECTION, LEVEL, CONTENT)