 |
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.SystemInfoAssembly: 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
)<DllImportAttribute("kernel32.dll", SetLastError := true>]
Public Shared Function GetSystemTimes (
<OutAttribute> ByRef idleTime As FILETIME,
<OutAttribute> ByRef kernelTime As FILETIME,
<OutAttribute> ByRef userTime As FILETIME
) As Booleanpublic:
[DllImportAttribute(L"kernel32.dll", SetLastError = true)]
static bool GetSystemTimes(
[OutAttribute] FILETIME% idleTime,
[OutAttribute] FILETIME% kernelTime,
[OutAttribute] FILETIME% userTime
)
[<DllImportAttribute("kernel32.dll", SetLastError = true)>]
static member GetSystemTimes :
idleTime : FILETIME byref *
kernelTime : FILETIME byref *
userTime : FILETIME byref -> bool 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
BooleanIf the function succeeds, the return value is nonzero. To determine whether the
function adjusted all of the specified privileges, call
.
See Also