Advertisement
Mysoft

Untitled

Jun 28th, 2016
675
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sub SleepN( iWait as integer )
  2.   static as double fSync
  3.   if abs(timer-fSync) > .5 then fSync = timer
  4.   while (timer-fSync) < (1/(1000/iWait))
  5.     sleep 1,1
  6.   wend
  7.   fSync += (1/(1000/iWait))
  8. end sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement