struct as_sub_second
Declaration
struct as_sub_second { /* full declaration omitted */ };
Description
Wrap a std::chrono::duration
in this to auto-format it as seconds, milliseconds, microseconds, or nanoseconds.
Member Variables
- std::chrono::duration<double> seconds
Member Function Overview
- template <typename Rep, typename Period>
as_sub_second(const std::chrono::duration<Rep, Period> & duration)
Member Functions
¶template <typename Rep, typename Period>
as_sub_second(
const std::chrono::duration<Rep, Period>&
duration)
template <typename Rep, typename Period>
as_sub_second(
const std::chrono::duration<Rep, Period>&
duration)
Template Parameters
- Rep
- Period
Parameters
- const std::chrono::duration<Rep, Period>& duration