\brief duration in microseconds \param start the start time \param stop the stop time \return the duration in microseconds
| 46 | /// \param stop the stop time |
| 47 | /// \return the duration in microseconds |
| 48 | inline time_with_unit duration_us(time_point start, time_point stop){ |
| 49 | return std::make_pair(std::chrono::duration_cast<std::chrono::microseconds>(stop - start).count(), "us"); |
| 50 | } |
| 51 | |
| 52 | /// \brief duration in milliseconds |
| 53 | /// \param start the start time |