The PsQueryTotalCycleTimeProcess routine returns the accumulated cycle time for the specified process.
ULONG64 PsQueryTotalCycleTimeProcess( _Inout_ PEPROCESS Process, _Out_ PULONG64 CycleTimeStamp );
- Process [in, out]
A pointer to an EPROCESS structure that serves as the kernel object for the process.
- CycleTimeStamp [out]
A pointer to a ULONG64 variable to which the routine writes the current cycle counter value for the process.
PsQueryTotalCycleTimeProcess returns the accumulated cycle time for the specified process.
This routine uses the time stamp counter to get the number of processor clock cycles used by the specified process.
|Available in Windows 8 and later versions of Windows.|