...one of the most highly
regarded and expertly designed C++ library projects in the
world. — Herb Sutter and Andrei
template uses wait traits to allow programs to customize
[Note: Possible uses of wait traits include:
— To enable timers based on non-realtime clocks.
— Determining how quickly wallclock-based timers respond to system time changes.
— Correcting for errors or rounding timeouts to boundaries.
— Preventing duration overflow. That is, a program may set a timer's expiry
never reached) or
always in the past). As a result, computing the duration until timer expiry
cause overflow. —end note]
For a type
Clock requirements (C++Std
[time.clock.req]), a type
if it satisfies the requirements listed below.
In the table below,
a (possibly const) value of type
d denotes a (possibly
const) value of type
Table 35. WaitTraits requirements