Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const syncsleep = (waitTime) => {
- let startDate = new Date(), currDate = null;
- do {
- currDate = new Date();
- } while (currDate - startDate < waitTime);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement