Skip to content

Latest commit

 

History

History
95 lines (71 loc) · 3.2 KB

nf-processthreadsapi-getsystemtimes.md

File metadata and controls

95 lines (71 loc) · 3.2 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:processthreadsapi.GetSystemTimes
GetSystemTimes function (processthreadsapi.h)
Retrieves system timing information. On a multiprocessor system, the values returned are the sum of the designated times across all processors.
GetSystemTimes
GetSystemTimes function
base.getsystemtimes
processthreadsapi/GetSystemTimes
base\getsystemtimes.htm
processthreadsapi
84f674e7-536b-4ae0-b523-6a17cb0a1c17
12/05/2018
GetSystemTimes, GetSystemTimes function, base.getsystemtimes, processthreadsapi/GetSystemTimes
processthreadsapi.h
Windows.h
Windows
Windows Vista, Windows XP with SP1 [desktop apps only]
Windows Server 2003 [desktop apps only]
Kernel32.lib
Kernel32.dll
Windows
19H1
GetSystemTimes
processthreadsapi/GetSystemTimes
c++
APIRef
kbSyntax
DllExport
Kernel32.dll
API-MS-Win-Core-ProcessThreads-l1-1-2.dll
KernelBase.dll
MinKernelBase.dll
api-ms-win-downlevel-kernel32-l1-1-0.dll
API-MS-Win-Core-ProcessThreads-L1-1-3.dll
GetSystemTimes

GetSystemTimes function

-description

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

-parameters

-param lpIdleTime [out, optional]

A pointer to a FILETIME structure that receives the amount of time that the system has been idle.

-param lpKernelTime [out, optional]

A pointer to a FILETIME 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.

-param lpUserTime [out, optional]

A pointer to a FILETIME 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).

-returns

If the function succeeds, the return value is nonzero.

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

-remarks

To compile an application that uses this function, define _WIN32_WINNT as 0x0501 or later. For more information, see Using the Windows Headers.

-see-also

FILETIME

System Time

Time Functions