Python czekaj 1 s.
import time
# Wait for 5 seconds
time.sleep(5)
# Wait for 300 milliseconds
# .3 can also be used
time.sleep(.300)
Blushing Bat
import time
# Wait for 5 seconds
time.sleep(5)
# Wait for 300 milliseconds
# .3 can also be used
time.sleep(.300)
function delay(time) {
return new Promise(resolve => setTimeout(resolve, time));
}
delay(1000).then(() => console.log('ran after 1 second1 passed'));
setTimeout(function(){
alert("Sup!");
}, 2000);//wait 2 seconds
setTimeout(function(){ alert("Hello"); }, 3000);
setTimeout(function(){
console.log("Ready")
}, 1000);
setTimeout(() => {console.log('1 second finished!')}, 1000);