KeQueryTickCount - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntddk.h

VOID
KeQueryTickCount (
    _Out_ PLARGE_INTEGER CurrentCount
    );

View the official Windows Driver Kit DDI reference
// wdm.h

void KeQueryTickCount(
  [out] CurrentCount
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ntddk-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

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


Windows Driver Kit DDI reference (nf-wdm-kequerytickcount)

KeQueryTickCount macro (wdm.h)

Description

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

Parameters

CurrentCount [out]

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

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