上传者: ljklxlj
|
上传时间: 2021-01-28 02:18:54
|
文件大小: 1KB
|
文件类型: PAS
procedure delay(msecs:integer);
var
Tick: DWord;
Event: THandle;
begin
Event := CreateEvent(nil, False, False, nil);
try
Tick := GetTickCount + DWord(msecs);
while (msecs > 0) and (MsgWaitForMultipleObjects(1, Event, False, msecs, QS_ALLINPUT) WAIT_TIMEOUT) do
begin
Appl