Solution for "php usleep"

usleep(10); // Sleeps 1 millisecond

php sleep milliseconds

usleep(500000);

php sleep half a second

<?php // Current time echo date('h:i:s') . "\n"; // wait for 2 seconds usleep(2000000); // back! echo date('h:i:s') . "\n"; ?>

sleep microseconds php

Similar codes for "php usleep"


Latest 'PHP' questions

Added before "php usleep"