diff options
Diffstat (limited to 'lib/private/diagnostics/event.php')
-rw-r--r-- | lib/private/diagnostics/event.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/diagnostics/event.php b/lib/private/diagnostics/event.php index 063c0c49dc2..af5d2ff8840 100644 --- a/lib/private/diagnostics/event.php +++ b/lib/private/diagnostics/event.php @@ -81,6 +81,9 @@ class Event implements IEvent { * @return float */ public function getDuration() { + if (!$this->end) { + $this->end = microtime(true); + } return $this->end - $this->start; } } |