Note that this function has an overhead!
Example:
<?php
for ($i = 0; $i < 1000000; ++$i)
{
usleep(1);
}
?>
This block is running about 70 seconds on my server.
Script take about 70 microseconds for every usleep() function call.
Note that this function has an overhead!
Example:
<?php
for ($i = 0; $i < 1000000; ++$i)
{
usleep(1);
}
?>
This block is running about 70 seconds on my server.
Script take about 70 microseconds for every usleep() function call.