Code of delayed execution effect in PHP and JS programming

Time:2020-1-11

php
sleep(10);
usleep(10);
In JS
Setinterval (“method”, 100);

PHP sleep() function

<?php
echo date(‘h:i:s’) . “<br />”;

//Pause for 10 seconds
sleep(10);

//Restart
echo date(‘h:i:s’);

?>
Syntax of a command line (batch) to delay command execution
//www.jb51.net/article/11381.htm