Advertisement
wmachuca

Función de Pausa de Ejecución

Sep 3rd, 2015
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function sleep(miliseconds) {
  2.     var currentTime = new Date().getTime();
  3.  
  4.     while (currentTime + miliseconds >= new Date().getTime()) {
  5.     }
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement