[tab:time.clock] (original) (raw)
Table 129 — Cpp17Clock requirements [tab:time.clock]
🔗Expression | Return type | Operational semantics |
---|---|---|
🔗C1::rep | An arithmetic type or a class emulating an arithmetic type | The representation type of C1::duration. |
🔗C1::period | a specialization of ratio | The tick period of the clock in seconds. |
🔗C1::duration | chrono::duration<C1::rep, C1::period> | The duration type of the clock. |
🔗C1::time_point | chrono::time_point<C1> or chrono::time_point<C2, C1::duration> | The time_point type of the clock. C1 and C2 shall refer to the same epoch. |
🔗C1::is_steady | const bool | true if t1 <= t2 is always true and the time between clock ticks is constant, otherwise false. |
🔗C1::now() | C1::time_point | Returns a time_point object representing the current point in time. |