Created
January 11, 2019 02:06
-
-
Save georgebearden/c19f48851e85ce7fbc86284051876989 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 sleep(millis) { | |
var start = new Date().getTime(); | |
while ((new Date().getTime() - start) <= millis) {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment