A clock is a component that defines two things:
- A beginning of time called epoch; there is no constraint of what the epoch is, but typical implementations use January 1, 1970.
- A tick rate that defines the increment between two time points (such as a millisecond or nanosecond).
A time point is a duration of time since the epoch of a clock. There are several time points that are of particular importance:
- The current time, returned by the clock's static member now().
- The epoch, or the beginning of time; this is the time point created by the default constructor of time_point for a particular clock.
- The minimum time that can be represented by a clock, returned by the static member min() of time_point.
- The maximum time that can ...