Expand Minimize

KeQueryTickCount routine

The KeQueryTickCount routine maintains a count of the interval timer interrupts that have occurred since the system was booted.

Syntax


VOID KeQueryTickCount(
  _Out_  PLARGE_INTEGER TickCount
);

Parameters

TickCount [out]

Pointer to the tick count value on return from KeQueryTickCount.

Return value

None

Remarks

The TickCount value increases by one at each interval timer interrupt while the system is running.

The preferred method of determining elapsed time is by using TickCount for relative timing and time stamps.

To determine the absolute elapsed time multiply the returned TickCount by the KeQueryTimeIncrement return value using compiler support for 64-bit integer operations.

You should not make any assumptions about the length of a tick, because it might vary depending on hardware and other considerations.

Requirements

Version

Available starting with Windows 2000.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

Library

Ntoskrnl.lib

IRQL

Any level

See also

KeQueryInterruptTime
KeQueryPerformanceCounter
KeQueryTimeIncrement

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft