cpp/chrono/duration

Class template represents a time interval.

It consists of a count of ticks of type and a tick period, where the tick period is a compile-time rational  representing the time in seconds from one tick to the next.

The only data stored in a is a tick count of type. If is floating point, then the  can represent fractions of ticks. is included as part of the duration's type, and is only used when converting between different durations.

Helper types
Note: each of the predefined duration types up to covers a range of at least ±292 years.