網路上找到的Delay function好像都是舊版delphi的,只適用在windows,稍微改了一下,現在跨平台也都可以用了!

procedure Delay(msec: LongInt);
var
  Timestart:Tdatetime;
begin
  Timestart := gettime;
  while (gettime - Timestart)*100000000 < msec do
  begin
    Application.ProcessMessages;
  end;
end;

arrow
arrow
    創作者介紹
    創作者 無人知曉的Tony 的頭像
    無人知曉的Tony

    無人知曉的Tony

    無人知曉的Tony 發表在 痞客邦 留言(0) 人氣()