| 28 | } |
| 29 | |
| 30 | std::vector<Measurement> WallClockTimer::GetMeasurements() const |
| 31 | { |
| 32 | const auto delta = std::chrono::duration<double, std::micro>(m_Stop - m_Start); |
| 33 | const auto startTimeMs = std::chrono::duration<double, std::micro>(m_Start.time_since_epoch()); |
| 34 | const auto stopTimeMs = std::chrono::duration<double, std::micro>(m_Stop.time_since_epoch()); |
| 35 | |
| 36 | return { { WALL_CLOCK_TIME, delta.count(), Measurement::Unit::TIME_US }, |
| 37 | { WALL_CLOCK_TIME_START, startTimeMs.count(), Measurement::Unit::TIME_US }, |
| 38 | { WALL_CLOCK_TIME_STOP, stopTimeMs.count(), Measurement::Unit::TIME_US } }; |
| 39 | } |
| 40 | |
| 41 | } //namespace armnn |
no test coverage detected