| 48 | } |
| 49 | |
| 50 | std::string Timer::format() const { |
| 51 | if (m_end == TimePointType{}) { |
| 52 | return fmt::format("Timer {} started at {}", m_message, m_start); |
| 53 | } else { |
| 54 | return fmt::format("Timer {} took {} ms", m_message, duration()); |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | std::string Timer::formatRow(size_t message_len, size_t timepoint_len, size_t duration_len) const { |
| 59 | if (m_level == 1) { |
no outgoing calls
no test coverage detected