Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var sleep = function (time) {
- var now = Date.now || function () { return new Date().getTime(); };
- for(var t = now(); now() - t <= time;);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement