This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of Dup status.

1411. Add a compile-time flag to detect monotonic_clock

Section: 99 [time.clock.monotonic] Status: Dup Submitter: DIN Opened: 2010-08-25 Last modified: 2016-01-28

Priority: Not Prioritized

View all other issues in [time.clock.monotonic].

View all issues with Dup status.

Duplicate of: 1410

Discussion:

Addresses DE-20

The library component monotonic_clock is conditionally supported, but no compile-time flag exists that allows user-code to query its existence. Further-on there exist no portable means to simulate such a query. (To do so, user code would be required to add types to namespace std::chrono.)

Proposed resolution:

Provide a compile-time flag (preferably a macro) that can be used to query the existence of monotonic_clock.