function StopwatchEvent::getDuration
Gets the duration of the events (including all periods).
Return value
integer The duration (in milliseconds)
File
-
webprofiler/
src/ Stopwatch.php, line 434
Class
- StopwatchEvent
- Class StopwatchEvent
Namespace
Drupal\webprofilerCode
public function getDuration() {
$total = 0;
foreach ($this->periods as $period) {
$total += $period->getDuration();
}
return $total;
}