Last active
November 5, 2018 12:34
-
-
Save adalenv/c1a4752934ed46ccad12a8fb3a7e1c31 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(delayMS) { | |
var start = new Date().getTime(); | |
while (new Date().getTime() < start + delayMS); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment