Page MenuHomeSealhub

sleep.php
No OneTemporary

sleep.php

<?php
if ($argc != 2) {
echo "usage: sleep <duration>\n";
exit(1);
}
// NOTE: Sleep for the requested duration even if our actual sleep() call is
// interrupted by a signal.
$then = microtime(true) + (double)$argv[1];
while (true) {
$now = microtime(true);
if ($now >= $then) {
break;
}
$sleep = max(1, ($then - $now));
usleep((int)($sleep * 1000000));
}

File Metadata

Mime Type
text/x-php
Expires
Fri, Nov 28, 14:49 (3 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1048444
Default Alt Text
sleep.php (377 B)

Event Timeline