Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

usleep

Description

The usleep of Miscellaneous for PHP 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

1

<?

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

$micro_seconds = 1000000;
usleep($micro_seconds);

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

?>
04:55:02
04:55:03
HomeMenu