ExQueryTimerResolution function

The ExQueryTimerResolution routine reports the range of timer resolutions that are supported by the system clock.

Syntax

NTKERNELAPI VOID ExQueryTimerResolution(
  PULONG MaximumTime,
  PULONG MinimumTime,
  PULONG CurrentTime
);

Parameters

MaximumTime

A pointer to a location to which the routine writes the maximum time interval, in 100-nanosecond units, between successive ticks of the system clock. A tick is an interrupt caused by the system clock timer.

MinimumTime

A pointer to a location to which the routine writes the minimum time interval, in 100-nanosecond units, between successive ticks of the system clock.

CurrentTime

A pointer to a location to which the routine writes the current time interval, in 100-nanosecond units, between successive ticks of the system clock.

Return Value

None.

Remarks

If your driver calls the ExSetTimerResolution routine to change the time interval between successive system clock interrupts, the driver can first call ExQueryTimerResolution to determine the range of intervals supported by the system clock.

When your driver calls a routine such as KeSetTimerEx to set a timer, the accuracy of the timer depends on the resolution of the system clock. For more information, see Timer Accuracy.

Requirements

   
Windows version Available starting with Windows 8.
Target Platform Universal
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)
Library Ntoskrnl.lib
IRQL Any level.

See Also

ExSetTimerResolution

KeSetTimerEx