示例#1
0
 public function addDuration(Debug_TimerEvent $event)
 {
     list($totalDuration, $activeDuration) = $event->getDuration();
     $this->duration += $activeDuration;
 }
示例#2
0
 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);
 }