How to make the program delay

zhaozj2021-02-08  256

Q: How to make the program delay

A:

procedure Delay (msecs: integer); varFirstTickCount: longint; beginFirstTickCount: = GetTickCount; repeatApplication.ProcessMessages; until ((GetTickCount-FirstTickCount)> = Longint (msecs)); end;

转载请注明原文地址:https://www.9cbs.com/read-1354.html

New Post(0)