Boost logo

Boost :

Subject: Re: [boost] [date_time] monotonic_time() proposal
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2010-02-27 14:50:02


On 02/27/2010 11:52 AM, Dmitry Goncharov wrote:
>> Just make sure that it doesn't break
>> microsec_clock if a monotonic timer is not available.
> Good point.
> It is possible to fallback to universal_time() when no monotonic timer
> is available. In this case the users of microsec_clock can safely use
> monotonic_time() on any platform.
> Another approach is to remove monotonic_time() away from microsec_clock
> if no monotonic timer is available. In this case the users'll have to
> handle this situation. Most of the time they'll end up using
> universal_time() anyway.

Why not introduce monotonic_clock? With a configuration macro to detect
its absence.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk