13 m_state(
State::kStopped)
20 m_stop = Clock::time_point();
54 m_stop = Clock::time_point();
64 m_stop = Clock::time_point();
76 return std::chrono::duration_cast<std::chrono::duration<double>>(
m_duration).
count();
86 return std::chrono::duration_cast<std::chrono::duration<double>>(
untilNow()).
count();
96 static const std::vector<std::string>
states{
"stopped",
"running",
"paused",
"unknown" };
120 m_stop = Clock::time_point();
Clock::time_point const & getStartTime() const
void setStartTime(Clock::time_point const &)
double secondsUntilNow() const
Duration untilNow() const
void setStopTime(Clock::time_point const &)
Clock::time_point const & getStopTime() const
Clock::time_point m_start
std::string const & describe() const
std::chrono::nanoseconds Duration