Advertisement
Guest User

Laggy Delay Function

a guest
Nov 28th, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.22 KB | None | 0 0
  1. procedure TForm1.Delay( const msecs:integer);
  2. var  FirstTickCount: longint;
  3. begin
  4.   FirstTickCount:=GetTickCount;
  5.   repeat
  6.     Application.ProcessMessages;
  7.   until ((GetTickCount-FirstTickCount) >= Longint(msecs));
  8. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement