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