Tao.Platform.Windows SDK Documentation

Kernel.QueryPerformanceCounter Method 

The QueryPerformanceCounter function retrieves the current value of the high-resolution performance counter.

[Visual Basic]
Public Shared Function QueryPerformanceCounter( _
   ByRef performanceCount As Long _
) As Boolean
[C#]
public static bool QueryPerformanceCounter(
   out long performanceCount
);

Parameters

performanceCount
Pointer to a variable that receives the current performance-counter value, in counts.

Return Value

If the function succeeds, the return value is true.

If the function fails, the return value is false. To get extended error information, call GetLastWin32Error.

Remarks

On a multiprocessor machine, it should not matter which processor is called. However, you can get different results on different processors due to bugs in the BIOS or the HAL. To specify processor affinity for a thread, use the SetThreadAffinityMask function.

See Also

Kernel Class | Tao.Platform.Windows Namespace | QueryPerformanceCounterFast | QueryPerformanceFrequency