Boost logo

Boost :

From: Edward Lam (e4lam_at_[hidden])
Date: 2006-10-31 17:39:35


Philippe Vaucher wrote:
> microsec_clock doens't use timeGetTime()... it uses GetSystemTime() if I
> remember correctly.

I haven't tried it but according to various links, GetSystemTime() only gives
~10ms or ~15ms precision (eg.
http://discuss.fogcreek.com/joelonsoftware3/default.asp?cmd=show&ixPost=85520).

After Googling, I found this old but useful article on timers:
     http://www.ddj.com/dept/windows/184416651
In particular, this table summarizes the resolution:
     http://www.ddj.com/showArticle.jhtml?documentID=win0305a&pgno=17

Maybe GetSystemTime() should be renamed "centisec_timer" :)

My personal vote would for microsec_timer to be implemented based on
QueryPerformanceCounter() and just make sure we point to the MSDN documentation.

Regards,
-Edward


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