Click or drag to resize
Xcalibur Systems LLC Logo

ProcessHelperQueryThreadCycleTime Method

Retrieves the cycle time for the specified thread.

QueryThreadCycleTime 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 QueryThreadCycleTime(
	IntPtr threadHandle,
	out ulong cycleTime
)

Parameters

threadHandle  IntPtr
A handle to the thread. The handle must have the or access right.
cycleTime  UInt64
The number of CPU clock cycles used by the thread. 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