New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use monotonic timer in rex_timer #5773
Conversation
@@ -129,4 +129,8 @@ public function getFormattedDelta($precision = self::MILLISEC, $decimals = 3) | |||
$time = $this->getDelta($precision); | |||
return rex_formatter::number($time, [$decimals]); | |||
} | |||
|
|||
static private function now() { | |||
return hrtime(true) / 1e9; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inspired by guzzle/guzzle#2242
@bloep why do we need the redaxo/redaxo/src/addons/debug/lib/extensions/extension_debug.php Lines 22 to 26 in 8182d4d
|
if i have it right in my mind, it has to do with the fact that clockwork wants to have an absolute time from process begin, so that it appears correctly in the timeline. |
Bei rex_timer kann man an den Constructor eine Start-microtime übergeben, was wir im Core hier auch tun. |
Also ich sehe diese zwei Varianten:
|
2 |
closes #5772
debug addon screen after change