UID | title | description | old-location | tech.root | ms.date | keywords | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | f1_keywords | topic_type | api_type | api_location | api_name | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:ntddk.KeQueryTickCount |
KeQueryTickCount macro (ntddk.h) |
The KeQueryTickCount routine maintains a count of the interval timer interrupts that have occurred since the system was booted. |
kernel\kequerytickcount.htm |
kernel |
04/30/2018 |
|
KeQueryTickCount, KeQueryTickCount routine [Kernel-Mode Driver Architecture], k105_a6a22896-6f3e-4e58-b443-4a06ff67b0ce.xml, kernel.kequerytickcount, wdm/KeQueryTickCount |
ntddk.h |
Wdm.h, Ntddk.h, Ntifs.h |
Universal |
Available starting with Windows 2000. |
NtosKrnl.lib |
NtosKrnl.exe |
Any level |
Windows |
|
|
|
|
|
The KeQueryTickCount routine maintains a count of the interval timer interrupts that have occurred since the system was booted.
Pointer to the tick count value on return from KeQueryTickCount.
VOID
KeQueryTickCount (
_Out_ PLARGE_INTEGER CurrentCount
);
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.