Advertisement
STANAANDREY

syncsleep

Apr 23rd, 2021
962
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const syncsleep = (waitTime) => {
  2.     let startDate = new Date(), currDate = null;
  3.     do {
  4.         currDate = new Date();
  5.     } while (currDate - startDate < waitTime);
  6. };
  7.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement