var StartTime, EndTime: cardinal; begin StartTime := GetTickCount; sleep(1000); EndTime := GetTickCount; caption := (IntToStr(EndTime - StartTime) + ' ms'); end;
var StartTime, EndTime: cardinal; begin StartTime := GetTickCount; sleep(1000); EndTime := GetTickCount; caption := (IntToStr(EndTime - StartTime) + ' ms'); end;