A função Delay do turbo pascal

procedure TForm1.Delay(msecs:integer);
var FirstTickCount : longint;
begin
  FirstTickCount:=GetTickCount;
  repeat
    Application.ProcessMessages;
  until ((GetTickCount-FirstTickCount) >= Longint(msecs));
end;
    

Autor : desconhecido

Voltar