Defined in header <chrono> | ||||
---|---|---|---|---|
| (since C++17) |
Returns the greatest duration t
representable in ToDuration
that is less or equal to d
.
The function does not participate in the overload resolution unless ToDuration
is an instance of std::chrono::duration
.
Parameters
d | - | duration to convert |
Return value
d
rounded down to a duration of type ToDuration
.
Possible implementation
|
Example
See also
converts a duration to another, with a different tick interval (function template) | |
(C++17) | converts a duration to another, rounding up (function template) |
(C++17) | converts a duration to another, rounding to nearest, ties to even (function template) |
(C++17) | converts a time_point to another, rounding down (function template) |
nearest integer not greater than the given value (function) |
Please login to continue.