| 50 | } |
| 51 | |
| 52 | void pause() |
| 53 | { |
| 54 | std::chrono::high_resolution_clock::time_point end |
| 55 | = std::chrono::high_resolution_clock::now(); |
| 56 | |
| 57 | if(m_started) |
| 58 | { |
| 59 | const std::chrono::duration<float, std::milli> duration = end - m_start; |
| 60 | |
| 61 | m_duration += duration; |
| 62 | } |
| 63 | else |
| 64 | { |
| 65 | throw std::runtime_error("Measure already stopped."); |
| 66 | } |
| 67 | |
| 68 | m_started = false; |
| 69 | } |
| 70 | |
| 71 | void print() const noexcept |
| 72 | { |
no outgoing calls
no test coverage detected