Last active
November 25, 2017 20:40
-
-
Save danakt/d564d275df5964a2fda34c8e2f79cd0b to your computer and use it in GitHub Desktop.
Pause script
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 pause(milliseconds) { | |
const dt = Date.now() | |
while (Date.now() - dt <= milliseconds) {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment