打印本文 打印本文 关闭窗口 关闭窗口
Delphi中延时
作者:武汉SEO闵涛  文章来源:敏韬网  点击数627  更新时间:2009/4/23 18:30:51  文章录入:mintao  责任编辑:mintao

当前位置:Delphi园地 → 技巧文章 → 编程心得 → Delphi中延时
 
Delphi中延时
日期:2004年8月31日 作者: 
 
procedure Delay(msecs:integer);
var
FirstTickCount:longint;

begin

FirstTickCount:=GetTickCount;
repeat
Application.ProcessMessages;
until ((GetTickCount-FirstTickCount) >= Longint(msecs));

end;

(出处:www.delphibbs.com)

打印本文 打印本文 关闭窗口 关闭窗口