stdchronoabsstdchronoduration(3)
std::chrono::abs(std::chrono::duration) - std::chrono::abs(std::chrono::duration)
Synopsis
Defined in header <chrono> template <class Rep, class Period> (since C++17) constexpr duration<Rep, Period> abs(duration<Rep, Period> d) Returns the absolute value of the duration d. Specifically, if d >= d.zero(), return d, otherwise return -d. The function does not participate in the overload resolution unless std::numeric_limits<Rep>::is_signed is true.
Parameters
d - duration
Return value
Absolute value of d
Possible implementation
Example
This section is incomplete Reason: no example
See also