网站首页  计算机词典

请输入您要查询的字词:

 

字词 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
随便看

 

计算机英汉双解词典包含34412条计算机术语英汉翻译词条,基本涵盖了全部常用计算机术语的翻译及用法,是计算机学习及翻译工作的有利工具。

 

Copyright © 2021-2025 foosec.com All Rights Reserved
更新时间:2026/10/23 22:40:05