usleep

Delay execution in microseconds

Syntax

usleep ( int $micro_seconds ) : void

Parameters

micro_seconds

Halt time in microseconds. A microsecond is one millionth of a second.

Note: On Windows, the system may sleep longer that the given number of microseconds, depending on the hardware.

Return

No value is returned.

Examples

<?

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

$micro_seconds = 1000000;
usleep($micro_seconds);

echo date('h:i:s');

?>
01:11:45
01:11:46

__halt_compiler

connection_aborted

connection_status

constant

define

defined

die

eval

exit

highlight_file

highlight_string

hrtime

ignore_user_abort

pack

php_strip_whitespace

show_source

sleep

sys_getloadavg

time_nanosleep

time_sleep_until

uniqid

unpack

PHP

Home Menu