php sleep less than 1 sec code example
Example 1: php sleep half a second
usleep(500000);
Example 2: sleep microseconds php
<?php
// Current time
echo date('h:i:s') . "\n";
// wait for 2 seconds
usleep(2000000);
// back!
echo date('h:i:s') . "\n";
?>