
26 Jun
2006
26 Jun
'06
11:27 a.m.
"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