Created
May 20, 2009 10:47
-
-
Save natbat/114743 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wait(millis) { | |
var date = new Date(); | |
var curDate = null; | |
do { | |
curDate = new Date(); | |
} while(curDate-date < millis); | |
var date = null; | |
var curDate = null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment