Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- procedure Timer;
- begin
- if timeall=0 then timeall:=gettickCount;
- if timeNow=0 then timeNow:=gettickCount-timeall;
- if timeNow>0 then
- begin
- timeall:=gettickCount;
- sleep(1000);
- timeNow:=timeNow+(gettickcount-timeall);
- end;
- writeln(timeNow);
- //sleep(1);
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement