网站首页  词典首页

请输入您要查询的函数:

 

术语 queryperformancecounter
释义 QueryPerformanceCounter
语法:
BOOL QueryPerformanceCounter( LARGE_INTEGER *lpPerformanceCount
);
QueryPerformanceCounter函数
QueryPerformanceCounter函数检索高分辨率性能计数器的当前值。
参数
lpPerformanceCount
[out]指向一个变量,它接收电流性能计数器值的计数。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
在一个多处理器计算机上,这一问题并不应该被称为该处理器。但是,您可以得到不同的结果在不同处理器的基本输入由于错误/输出系统(BIOS)或硬件抽象层(HAL)。要指定一个线程处理器的亲和力,使用SetThreadAffinityMask功能。
功能信息
最低DLL版本 kernel32.dll
在Winbase.h HeaderDeclared,头文件:winuser.h
import libraryKernel32.lib
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为Unicode版本。
参见
定时器概述,QueryPerformanceFrequency的
==英文原文==QueryPerformanceCounter Function
The QueryPerformanceCounter function retrieves the current value of the high-resolution performance counter.
Syntax
BOOL QueryPerformanceCounter( LARGE_INTEGER *lpPerformanceCount
);
Parameters
lpPerformanceCount
[out] Pointer to a variable that receives the current performance-counter value, in counts.
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
On a multiprocessor computer, it should not matter which processor is called. However, you can get different results on different processors due to bugs in the basic input/output system (BIOS) or the hardware abstraction layer (HAL). To specify processor affinity for a thread, use the SetThreadAffinityMask function.
Function Information
Minimum DLL Versionkernel32.dll
HeaderDeclared in Winbase.h, include Windows.h
Import libraryKernel32.lib
Minimum operating systemsWindows 95, Windows NT 3.1
UnicodeImplemented as Unicode version.
See Also
Timers Overview , QueryPerformanceFrequency
==原始网址==http://msdn.microsoft.com/en-us/library/ms644904(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:32:05