類模板
<chrono>

std::chrono::time_point

template <class Clock, class Duration = typename Clock::duration>  class time_point;
Time point
A time_point object expresses a point in time relative to a clock's epoch.

Internally, the object stores an object of a duration type, and uses the Clock type as a reference for its epoch.

模板引數

Clock
A clock class, such as system_clock, steady_clock, high_resolution_clock or a custom clock class.
Duration
A duration type.

成員型別

以下別名是time_point的成員型別。它們被成員函式廣泛用作引數和返回型別。

成員型別定義說明
clock第一個模板引數 (Clock)The clock class (either system_clock, steady_clock, high_resolution_clock or a custom clock class).
duration第二個模板引數 (Duration)The duration type used to represent the time point.
repduration::repType returned by duration::count.
periodduration::periodThe ratio type that represents the length of a period in seconds.

成員函式


靜態成員函式


非成員函式


另見