Defined in header <chrono> | ||
---|---|---|
template <class ToDuration, class Clock, class Duration> constexpr time_point<Clock, ToDuration> ceil(const time_point<Clock, Duration>& tp); | (since C++17) |
Returns the smallest time point t
representable in ToDuration
that is greater or equal to tp
.
The function does not participate in the overload resolution unless ToDuration
is an instance of std::chrono::duration
.
tp | - | time point to convert |
d
rounded up to a the next time point using duration of type ToDuration
.
converts a time point to another time point on the same clock, with a different duration (function template) |
|
(C++17) | converts a time_point to another, rounding down (function template) |
(C++17) | converts a time_point to another, rounding to nearest, ties to even (function template) |
(C++17) | converts a duration to another, rounding up (function template) |
(C++11)(C++11) | nearest integer not less than the given value (function) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/chrono/time_point/ceil