GetTickCount(10分)

  • 主题发起人 主题发起人 milesmaqi
  • 开始时间 开始时间
M

milesmaqi

Unregistered / Unconfirmed
GUEST, unregistred user!
我知道这是一个产生,INTEGER的,函数,
但不知道具体是如何用的呢?
 
查一下MSDN就知道了:
The GetTickCount function retrieves the number of milliseconds that have elapsed
since the system was started. It is limited to the resolution of the system timer.
If you need a higher resolution timer, use amultimedia timer or a high-resolution timer.

DWORD GetTickCount(VOID)

Parameters
This function has no parameters.

Return Values
The return value is the number of milliseconds that have elapsed since the system was started.

Remarks
The following table describes the resolution of the system timer.

System Resolution
Windows NT 3.5 and later The system timer runs at approximately 10ms.
Windows NT 3.1 The system timer runs at approximately 16ms.
Windows 95 and later The system timer runs at approximately 55ms.

直接用:
var tc:DWORD;

tc:= GetTickCount;
 
后退
顶部