Some googling around provided no concrete answer for me.
First Google search result for "QueryPerformanceCounter": the MSDN documentation for QueryPerformanceCounter()
Here's what it has to say:
Parameters
lpPerformanceCount [out]
Type: LARGE_INTEGER*
A pointer to a variable that receives the
current performance-counter value, in counts.
First Google search result for "QueryPerformanceFrequency": the MSDN documentation for QueryPerformanceFrequency()
Here's what it has to say:
Parameters
lpFrequency [out]
Type: LARGE_INTEGER*
A pointer to a variable that
receives the current performance-counter frequency, in counts per
second. If the installed hardware does not support a high-resolution
performance counter, this parameter can be zero.
The value obtained from QueryPerformanceCounter()
is in counts. The value obtained from QueryPerformanceFrequency()
is in counts per second. Using a bit of dimensional analysis:
(counts) / (counts/second) = seconds
Therefore, the result of dividing the two values is in seconds.