Formats a duration into a human-readable string.
Declared in <mrdocs/Support/Chrono.hpp>
template<
class Rep,
class Period>
std::string
format_duration(std::chrono::duration<Rep, Period> delta);
This function takes a std::chrono::duration object and formats it into a string that represents the duration in a human-readable format. The format includes hours, minutes, seconds, and milliseconds as appropriate.
A string representing the formatted duration.
| Name | Description |
|---|---|
| delta | The duration to format. |