Boost logo

Boost :

Subject: [boost] [Boost.Timer] Why timer doesn't have a specific windows version using QueryPerformanceCounter() and QueryPerformanceFrequency()?
From: dlaugt_at_[hidden]
Date: 2010-11-03 08:53:40


Hi,

Boost.Timer is based on the C function clock(). On windows, this function gives
a precision of 1 millisecond only as CLOCKS_PER_SEC is equal to 1000.

Why Boost.Timer doesn't use for windows QueryPerformanceCounter() and
QueryPerformanceFrequency()? These functions give a precision around 2
microseconds.

Daniel.


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