Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P2114
(An Untitled Masterwork)
Active
Public
Actions
Authored by
amckinley
on Feb 20 2019, 9:03 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F6225609: raw.txt
Feb 20 2019, 9:03 PM
2019-02-20 21:03:58 (UTC+0)
Subscribers
None
$date_archived
=
$completed_task
->
getArchivedEpoch
();
$queue_seconds
=
$date_archived
-
$completed_task
->
getDateCreated
();
// The task may have completed in the same epoch second it was created.
if
((
int
)
$queue_seconds
>
0
)
$sec_in_us
=
phutil_units
(
'1 second in microseconds'
);
$queue_us
=
$queue_seconds
*
$sec_in_us
;
$queue_exclusive_us
=
$queue_us
-
$duration
;
$queue_exclusive_seconds
=
$queue_exclusive_us
/
$sec_in_us
;
$rounded
=
floor
(
$queue_exclusive_seconds
);
$completed_info
[
$class
][
'queueTime'
]
+=
$queue_exclusive_seconds
;
phlog
(
"got {$queue_seconds}s, {$queue_exclusive_seconds}us, res={$rounded} id={$completed_task->getID()}"
);
}
Event Timeline
amckinley
created this paste.
Feb 20 2019, 9:03 PM
2019-02-20 21:03:58 (UTC+0)
Log In to Comment