Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-05-15 16:56:28


Silex wrote:

> I'll try to see if there's a way to get the epoch from
> QueryPerformanceCounter or timeGetTime, so I could make a usable
> microsec_clock based on it.

QPC and timeGetTime are usable monotonic clocks (time providers). A
monotonic clock has the nice property that when you call it twice the
difference of the two values is (a) never negative (b) an approximation of
the elapsed time between the two calls. You don't need an epoch for that,
and in fact having an epoch destroys this property because of leap seconds,
daylight saving and changing time zones.


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