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

usleep

Description

The usleep of Miscellaneous for PHP delays execution in microseconds.

Syntax

usleep(
    int $microseconds
): void

Parameters

microseconds

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 · microseconds

<?

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

$microseconds = 1000000;

usleep($microseconds);

echo date("h:i:s");
05:30:36
05:30:37