[pascal]
var
StartTime, EndTime: cardinal;
begin
StartTime := GetTickCount;
sleep(1000);
EndTime := GetTickCount;
caption := (IntToStr(EndTime – StartTime) + ‘ ms’);
end;
[/pascal]
大型網站架構..net 架構師.rabbitMQ.redis.行動開發.APP開發教學.PHP Laravel開發..net core C# 開發.架構師之路.Delphi開發.資料庫程式.進銷存.餐飲POS系統
[pascal]
var
StartTime, EndTime: cardinal;
begin
StartTime := GetTickCount;
sleep(1000);
EndTime := GetTickCount;
caption := (IntToStr(EndTime – StartTime) + ‘ ms’);
end;
[/pascal]