Previous Next

KeQueryTickCount

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

VOID 
  KeQueryTickCount(
    OUT PLARGE_INTEGER  TickCount
    );

Parameters

TickCount
Pointer to the tick count value on return from KeQueryTickCount.

Return Value

None

Headers

Declared in wdm.h and ntddk.h. Include wdm.h or ntddk.h.

Comments

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.

Callers of KeQueryTickCount can be running at any IRQL.

See Also

KeQueryInterruptTime, KeQueryPerformanceCounter, KeQueryTimeIncrement