<font size="6" color="#FF0000">High Resolution Counter</font>
QueryPerformanceFrequency
The QueryPerformanceFrequency function retrieves the frequency of the
high-resolution performance counter, if one exists.
BOOL QueryPerformanceFrequency(
LARGE_INTEGER *lpFrequency // address of current frequency
);
Parameters
lpFrequency
Pointer to a variable that the function sets, in counts per second, to the
current performance-counter frequency. If the installed hardware does not
support a high-resolution performance counter, this parameter can be to zero.
Return Values
If the installed hardware supports a high-resolution performance counter,
the return value is nonzero.
If the installed hardware does not support a high-resolution performance
counter, the return value is zero.
QueryPerformanceCounter
The QueryPerformanceCounter function retrieves the current value of the
high-resolution performance counter, if one exists.
BOOL QueryPerformanceCounter(
LARGE_INTEGER *lpPerformanceCount // pointer to counter value
);
Parameters
lpPerformanceCount
Pointer to a variable that the function sets, in counts, to the current
performance-counter value. If the installed hardware does not support a
high-resolution performance counter, this parameter can be to zero.
Return Values
If the installed hardware supports a high-resolution performance counter,
the return value is nonzero.
If the installed hardware does not support a high-resolution performance
counter, the return value is zero.