Skip to content

Latest commit

 

History

History
85 lines (63 loc) · 2.5 KB

nf-ntddk-kequerytickcount.md

File metadata and controls

85 lines (63 loc) · 2.5 KB
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 macro
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
KeQueryTickCount
ntddk/KeQueryTickCount
APIRef
kbSyntax
DllExport
NtosKrnl.exe
KeQueryTickCount

KeQueryTickCount macro (ntddk.h)

-description

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

-parameters

-param CurrentCount

Pointer to the tick count value on return from KeQueryTickCount.

-syntax

VOID
KeQueryTickCount (
    _Out_ PLARGE_INTEGER CurrentCount
    );

-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.

-see-also

KeQueryInterruptTime

KeQueryPerformanceCounter

KeQueryTimeIncrement