Tao.Platform.Windows SDK Documentation

Kernel.QueryPerformanceCounterFast Method 

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

[Visual Basic]
Public Shared Function QueryPerformanceCounterFast( _
   ByRef performanceCount As Long _
) As Integer
[C#]
public static int QueryPerformanceCounterFast(
   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.

Remarks

This version of QueryPerformanceCounter is slightly faster. It does not set the last Windows error. Use with care.

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 | QueryPerformanceCounter | QueryPerformanceFrequency