\brief duration in nanoseconds \param start the start time \param stop the stop time \return the duration in nanoseconds
| 38 | /// \param stop the stop time |
| 39 | /// \return the duration in nanoseconds |
| 40 | inline time_with_unit duration_ns(time_point start, time_point stop){ |
| 41 | return std::make_pair(std::chrono::duration_cast<std::chrono::nanoseconds>(stop - start).count(), "ns"); |
| 42 | } |
| 43 | |
| 44 | /// \brief duration in microseconds |
| 45 | /// \param start the start time |
no outgoing calls
no test coverage detected