Created
April 8, 2019 21:57
-
-
Save amikitevich/d3c67296fe49a23a5fdc55ca80b0babd 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 sleep(delay) { | |
var start = new Date().getTime(); | |
while (new Date().getTime() < start + delay); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment