Advertisement
Faimen

Untitled

Jan 24th, 2018
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.26 KB | None | 0 0
  1. procedure Timer;
  2. begin
  3.  
  4. if timeall=0 then timeall:=gettickCount;
  5. if timeNow=0 then timeNow:=gettickCount-timeall;
  6. if timeNow>0 then
  7. begin
  8. timeall:=gettickCount;
  9. sleep(1000);
  10. timeNow:=timeNow+(gettickcount-timeall);
  11. end;
  12. writeln(timeNow);
  13. //sleep(1);
  14.  
  15. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement