std::chrono::time_point (3) - Linux Manuals
std::chrono::time_point: std::chrono::time_point
NAME
std::chrono::time_point - std::chrono::time_point
Synopsis
Defined in header <chrono>
template<
class Clock, (since C++11)
class Duration = typename Clock::duration
> class time_point;
Class template std::chrono::time_point represents a point in time. It is implemented as if it stores a value of type Duration indicating the time interval from the start of the Clock's epoch.
Clock must meet the requirements for Clock
or be std::chrono::local_t
(since C++20).
Member types
Member type Definition
clock Clock, the clock on which this time point is measured
duration Duration, a std::chrono::duration type used to measure the time since epoch
rep Rep, an arithmetic type representing the number of ticks of the duration
period Period, a std::ratio type representing the tick period of the duration
Member functions
constructor (public member function)
time_since_epoch (public member function)
operator+= (public member function)
operator-=
operator++
operator++(int) increments or decrements the duration
operator-- (public member function)
operator--(int)
(C++20)
min returns the time point corresponding to the smallest duration
[static]
max returns the time point corresponding to the largest duration
[static]
Non-member functions
std::common_type<std::chrono::time_point> (class template specialization)
operator+ (function template)
operator-
operator==
operator!= compares two time points
operator< (function template)
operator<=
operator>
operator>=
time_point_cast (function template)
floor(std::chrono::time_point) converts a time_point to another, rounding down
(C++17)
ceil(std::chrono::time_point) converts a time_point to another, rounding up