Click or drag to resize
Xcalibur Systems LLC Logo

SystemInfoHelperGetSystemTimes Method

Retrieves system timing information. On a multiprocessor system, the values returned are the sum of the designated times across all processors.

GetSystemTimes function


Namespace: Xcalibur.NativeMethods.V2.SystemInfo
Assembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax
[DllImportAttribute("kernel32.dll", SetLastError = true)]
public static bool GetSystemTimes(
	out FILETIME idleTime,
	out FILETIME kernelTime,
	out FILETIME userTime
)

Parameters

idleTime  FILETIME
A pointer to a structure that receives the amount of time that the system has been idle.
kernelTime  FILETIME
A pointer to a structure that receives the amount of time that the system has spent executing in Kernel mode (including all threads in all processes, on all processors). This time value also includes the amount of time the system has been idle.
userTime  FILETIME
A pointer to a structure that receives the amount of time that the system has spent executing in User mode (including all threads in all processes, on all processors).

Return Value

Boolean
If the function succeeds, the return value is nonzero. To determine whether the function adjusted all of the specified privileges, call .
See Also