
15 May
2006
15 May
'06
8:56 p.m.
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.