Expand Minimize

EngQueryPerformanceCounter function

The EngQueryPerformanceCounter function queries the performance counter.

Syntax


VOID EngQueryPerformanceCounter(
  _Out_  LONGLONG *pPerformanceCount
);

Parameters

pPerformanceCount [out]

Pointer to a location that receives the performance counter value, in hertz.

Return value

None

Remarks

EngQueryPerformanceCounter always returns a 64-bit integer that represents the number of ticks per second. The count begins accumulating when the system is booted.

A driver should call this routine sparingly. Frequent calls to EngQueryPerformanceCounter can degrade the I/O performance for the calling driver and for the system as a whole.

Requirements

Version

Available in Windows 2000 and later versions of the Windows operating systems.

Header

Winddi.h (include Winddi.h)

Library

Win32k.lib

DLL

Win32k.sys

See also

EngQueryPerformanceFrequency

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft