Click or drag to resize
Xcalibur Systems LLC Logo

ProcessHelperQueryProcessCycleTime Method

Retrieves the sum of the cycle time of all threads of the specified process.

QueryProcessCycleTime function


Namespace: Xcalibur.NativeMethods.V2.Processes
Assembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax
[DllImportAttribute("kernel32.dll")]
public static bool QueryProcessCycleTime(
	IntPtr processHandle,
	out ulong cycleTime
)

Parameters

processHandle  IntPtr
A handle to the process. The handle must have the or access right.
cycleTime  UInt64
he number of CPU clock cycles used by the threads of the process. This value includes cycles spent in both user mode and kernel mode.

Return Value

Boolean
If the function fails, the return value is zero. To get extended error information, call .
See Also