public function addDuration(Debug_TimerEvent $event) { list($totalDuration, $activeDuration) = $event->getDuration(); $this->duration += $activeDuration; }
protected function outputEndTimings(Debug_TimerEvent $event) { list($totalDuration, $activeDuration) = $event->getDuration(); $out = 'END ' . $event->name . '; '; $out .= 'DURATION: ' . $this->formatDuration($totalDuration) . '; '; $out .= 'ACTIVE: ' . $this->formatDuration($activeDuration); $this->activeDuration += $activeDuration; $this->log($out, $totalDuration); }