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
);
None
Declared in wdm.h and ntddk.h. Include wdm.h or ntddk.h.
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.
KeQueryInterruptTime, KeQueryPerformanceCounter, KeQueryTimeIncrement