C ++ 0x N3092 states that monotonic_clock is optional:
20.10.5.2 The monotonic_clock class [time.clock.monotonic]
Monotonic_clock objects represent a clock for which time_point never decreases as physical time advances. monotonic_clock may be synonymous with system_clock if system_clock :: is_monotonic is true.
The monotonic_clock class is conditionally supported.
Is it possible to use SFINAE or another method to define a feature class to determine if monotonic_clock is defined?
If not, shouldn't there be a standard macro indicating if monotonic_clock is available?
source
share