EN
此内容没有您的语言版本,但有英语版本。

GetProcessorSystemCycleTime function

Retrieves the cycle time each processor in the specified processor group spent executing deferred procedure calls (DPCs) and interrupt service routines (ISRs) since the processor became active.

Syntax


BOOL GetProcessorSystemCycleTime(
  _In_     USHORT Group,
  _Out_    PSYSTEM_PROCESSOR_CYCLE_TIME_INFORMATION Buffer,
  _Inout_  PDWORD ReturnedLength
);

Parameters

Group [in]

The number of the processor group for which to retrieve the cycle time.

Buffer [out]

A pointer to a buffer to receive a SYSTEM_PROCESSOR_CYCLE_TIME_INFORMATION structure for each processor in the group. On output, the DWORD64 CycleTime member of this structure is set to the cycle time for one processor.

ReturnedLength [in, out]

The size of the buffer, in bytes. When the function returns, this parameter contains the number of bytes written to Buffer. If the buffer is too small for the data, the function fails with ERROR_INSUFFICIENT_BUFFER and sets the ReturnedLength parameter to the required buffer size.

Return value

If the function succeeds, the return value is a nonzero value.

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

If the error value is ERROR_INSUFFICIENT_BUFFER, the ReturnedLength parameter contains the required buffer size.

Remarks

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

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

WinBase.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

See also

Processor Groups

 

 

社区附加资源

添加
显示:
© 2014 Microsoft