9#ifndef SQUID_SRC_BASE_STOPWATCH_H
10#define SQUID_SRC_BASE_STOPWATCH_H
35 using Clock = std::chrono::steady_clock;
47 Clock::duration
total()
const;
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
bool ran() const
whether we ever measured time (i.e. resume() has been called)
uint64_t pauses_
the total number of pause() calls