php sleep milliseconds
snippet in php

php sleep milliseconds

user3620

usleep(10);	// Sleeps 1 millisecond

sleep microseconds php

user6850


<?php

// Current time
echo date('h:i:s') . "\n";

// wait for 2 seconds
usleep(2000000);

// back!
echo date('h:i:s') . "\n";

?>

php sleep half a second

user7608

usleep(500000);