php usleep code example
Example 1: php sleep milliseconds
usleep(10); // Sleeps 1 millisecond
Example 2: php sleep half a second
usleep(500000);
Example 3: 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";
?>