RtQueryPerformanceFrequency
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.
Syntax
BOOL RtQueryPerformanceFrequency(
LARGE_INTEGER* lpFrequency);
Parameters
lpFrequency
Pointer to a variable that receives the performance-counter frequency, in counts per second.
Return Value
If the function succeeds, it returns a non-zero value. If the function fails, it returns 0 (zero). To get extended error information, call GetLastError.
Remarks
In a process, QueryPerformanceFrequency is the same as RtQueryPerformanceFrequency. QueryPerformanceCounter is the same as RtQueryPerformanceCounter.
Requirements
Minimum supported version | Header | Library |
---|---|---|
eRTOS 1.0 SDK |
Rtapi.h | rtkrnl.lib |
See Also: