Returns the nearest time point to tp representable in ToDuration
, rounding to even in halfway cases.
The function does not participate in the overload resolution unless ToDuration
is a specialization of std::chrono::duration and std::chrono::treat_as_floating_point_v<typename ToDuration::rep> is false.
tp rounded to nearest time point using duration of type ToDuration
, rounding to even in halfway cases.
Output:
Time point Cast Floor Round Ceil (ms) (s) (s) (s) (s) 5432 5 5 5 6 5678 5 5 6 6[edit] See also
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4