Welcome

首页 / 软件开发 / Delphi / Delphi中延时

Delphi中延时2008-02-02procedure Delay(msecs:integer);
var
FirstTickCount:longint;
begin
FirstTickCount:=GetTickCount;
repeat
Application.ProcessMessages;
until ((GetTickCount-FirstTickCount) >= Longint(msecs));
end;