网站首页  词典首页

请输入您要查询的函数:

 

术语 queryidleprocessorcycletime
释义 QueryIdleProcessorCycleTime
语法:
C++
BOOL WINAPI QueryIdleProcessorCycleTime(
__inout PULONG BufferLength,
__out PULONG64 ProcessorIdleCycleTime
);
QueryIdleProcessorCycleTime功能
检索的系统中的每个处理器空闲线程的周期时间。
在一个拥有6400多处理器的系统,这个函数检索的每个处理器组的调用线程分配处理器空闲线程的周期时间。使用QueryIdleProcessorCycleTimeEx函数来检索为每个特定的处理器组逻辑处理器空闲线程周期时间。
参数
BufferLength [ in , out ]
在输入,指定ProcessorIdleCycleTime缓冲区的大小,以字节。此缓冲区预计8倍组中的处理器的数量。
对产出,指定写入缓冲区的元素数。如果缓冲区大小是不够的,功能失败,这参数接收缓冲区的所需长度。
ProcessorIdleCycleTime [out]
在CPU时钟每个空闲线程使用周期数。这个缓冲区必须是8倍,在规模的系统处理器的数量。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
要编译的应用程序使用此功能,定义_WIN32_WINNT为0x0600或更高版本。
要求:
client最低支持Vista
server最低支持 Windows Server 2008
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
处理器组
QueryIdleProcessorCycleTimeEx
QueryProcessCycleTime
QueryThreadCycleTime
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==QueryIdleProcessorCycleTime Function
Retrieves the cycle time for the idle thread of each processor in the system.
On a system with more than 64 processors, this function retrieves the cycle time for the idle thread of each processor in the processor group to which the calling thread is assigned. Use the QueryIdleProcessorCycleTimeEx function to retrieve the cycle time for the idle thread on each logical processor for a specific processor group.
Syntax
C++
BOOL WINAPI QueryIdleProcessorCycleTime(
__inout PULONG BufferLength,
__out PULONG64 ProcessorIdleCycleTime
);
Parameters
BufferLength [in, out]
On input, specifies the size of the ProcessorIdleCycleTime buffer, in bytes. This buffer is expected to be 8 times the number of processors in the group.
On output, specifies the number of elements written to the buffer. If the buffer size is not sufficient, the function fails and this parameter receives the required length of the buffer.
ProcessorIdleCycleTime [out]
The number of CPU clock cycles used by each idle thread. This buffer must be 8 times the number of processors in the system in size.
Return Value
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 0x0600 or later.
Requirements
Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
Processor Groups
QueryIdleProcessorCycleTimeEx
QueryProcessCycleTime
QueryThreadCycleTime
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms684922(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:31:23