Boost logo

Boost :

From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2006-06-26 07:27:49


"Philippe Vaucher" wrote:

> As I understand it, QueryPerformanceCounter has a hardware defined
>> resolution that
>> can be queried by calling QueryPerformanceFrequency. QPF provides the
>> counts
>> per second. You should be able to use this to more simply construct the
>> time_duration.
>

The measurement will be exact if the execution
runs on single processor. On multiprocessor there's
always chance that the thread moves elsewhere
and the measured value will be slightly different.

/Pavel


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