网站首页  词典首页

请输入您要查询的函数:

 

术语 gettickcount
释义 GetTickCount
语法:
C++
DWORD WINAPI GetTickCount(void);
GetTickCount函数
检索的数量经过的毫秒自系统启动,到49.7天。
参数
这个函数没有参数。
返回值
返回值是所经过的毫秒数,因为该系统已启动。
备注
该决议GetTickCount函数仅限于该系统的计时器,这是在10毫秒范围通常为16毫秒的决议。该决议GetTickCount函数也受到了GetSystemTimeAdjustment职能作了调整。
所用的时间被存储为一个DWORD值。因此,时间将环绕为零如果系统运行49.7天不断。若要避免此问题,使用GetTickCount64功能。否则,检查比较时溢出时代条件。
如果您需要更高的分辨率计时器,使用多媒体定时器或高分辨率的计时器。
要获取时间过去了启动电脑,检索最多的时间在注册表中的性能数据的关键HKEY_PERFORMANCE_DATA对抗系统。返回值是一个8字节的值。有关更多信息,请参阅性能计数器。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
时间函数
Windows时间
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==GetTickCount Function
Retrieves the number of milliseconds that have elapsed since the system was started, up to 49.7 days.
Syntax
C++
DWORD WINAPI GetTickCount(void);
Parameters
This function has no parameters.
Return Value
The return value is the number of milliseconds that have elapsed since the system was started.
Remarks
The resolution of the GetTickCount function is limited to the resolution of the system timer, which is typically in the range of 10 milliseconds to 16 milliseconds. The resolution of the GetTickCount function is also affected by adjustments made by the GetSystemTimeAdjustment function.
The elapsed time is stored as a DWORD value. Therefore, the time will wrap around to zero if the system is run continuously for 49.7 days. To avoid this problem, use the GetTickCount64 function. Otherwise, check for an overflow condition when comparing times.
If you need a higher resolution timer, use a multimedia timer or a high-resolution timer .
To obtain the time elapsed since the computer was started, retrieve the System Up Time counter in the performance data in the registry key HKEY_PERFORMANCE_DATA. The value returned is an 8-byte value. For more information, see Performance Counters .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
Time Functions
Windows Time
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms724408(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:16