\brief duration in milliseconds \param start the start time \param stop the stop time \return the duration in milliseconds
| 54 | /// \param stop the stop time |
| 55 | /// \return the duration in milliseconds |
| 56 | inline time_with_unit duration_ms(time_point start, time_point stop){ |
| 57 | return std::make_pair(std::chrono::duration_cast<std::chrono::milliseconds>(stop - start).count(), "ms"); |
| 58 | } |
| 59 | |
| 60 | /// \brief duration in seconds |
| 61 | /// \param start the start time |