RtPerformance.RtQueryPerformanceFrequency Method

RtQueryPerformanceFrequency retrieves the frequency of the high-resolution performance counter(based on the processor’s time-stamp counter, TSC). The frequency cannot change while the system is running.

Namespace:  IntervalZero.MaxRT.wRTOS.RtApi.Diagnostics
Assembly:  IntervalZero.MaxRT.wRTOS (in IntervalZero.MaxRT.wRTOS.dll) Version: 1.0.0.0 (File version: 1.0.0)

Syntax

Copy
public bool RtQueryPerformanceFrequency(
    ref long lpFrequency
)

Parameters

lpFrequency

Type: System.Int64
Pointer to a variable that receives the performance-counter frequency, in counts per second.

Return Value

Type: Boolean
true if the function succeeds, false if the function fails. To get extended error information, call GetLastError.

See Also: