PsQueryTotalCycleTimeProcess function (wdm.h)
The PsQueryTotalCycleTimeProcess routine returns the accumulated cycle time for the specified process.
Syntax
ULONG64 PsQueryTotalCycleTimeProcess(
[in, out] PEPROCESS Process,
[out] PULONG64 CycleTimeStamp
);
Parameters
[in, out] Process
A pointer to an EPROCESS structure that serves as the kernel object for the process.
[out] CycleTimeStamp
A pointer to a ULONG64 variable to which the routine writes the current cycle counter value for the process.
Return value
PsQueryTotalCycleTimeProcess returns the accumulated cycle time for the specified process.
Remarks
This routine uses the time stamp counter to get the number of processor clock cycles used by the specified process.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Available in Windows 8 and later versions of Windows. |
Target Platform | Universal |
Header | wdm.h |
Library | Ntoskrnl.lib |
IRQL | PASSIVE_LEVEL |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for