Sleep For 1 Second

206

Sleep For 1 Second -

function delay(time) {
  return new Promise(resolve => setTimeout(resolve, time));
}

delay(1000).then(() => console.log('ran after 1 second1 passed'));

Sleep 10000 = 1 second -

Public Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds as Long) 'For 32 Bit Systems  

Comments

Submit
0 Comments