| 41 | } |
| 42 | |
| 43 | auto Timer::duration() const { |
| 44 | if (m_end == TimePointType{}) { |
| 45 | throw std::runtime_error(fmt::format("Timer {} with level={} was not stopped", m_message, m_level)); |
| 46 | } |
| 47 | return std::chrono::duration_cast<DurationType>(m_end - m_start); |
| 48 | } |
| 49 | |
| 50 | std::string Timer::format() const { |
| 51 | if (m_end == TimePointType{}) { |
no outgoing calls