Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F3493475
sleep.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
377 B
Referenced Files
None
Subscribers
None
sleep.php
View Options
<?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
Details
Attached
Mime Type
text/x-php
Expires
Thu, Apr 17, 06:42 (4 d, 7 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1111865
Default Alt Text
sleep.php (377 B)
Attached To
Mode
rARC Arcanist
Attached
Detach File
Event Timeline
Log In to Comment