Defined in header <chrono> template <class ToDuration, class Rep, class Period>
constexpr ToDuration ceil(const duration<Rep, Period>& d); (since C++17)
Returns the smallest duration t representable in ToDuration that is greater 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 up to a duration of type T