public function StopwatchPeriod::getDuration in Devel 8
Same name and namespace in other branches
- 8.3 webprofiler/src/Stopwatch.php \Drupal\webprofiler\StopwatchPeriod::getDuration()
- 8.2 webprofiler/src/Stopwatch.php \Drupal\webprofiler\StopwatchPeriod::getDuration()
- 4.x webprofiler/src/Stopwatch.php \Drupal\webprofiler\StopwatchPeriod::getDuration()
Gets the time spent in this period.
Return value
integer The period duration (in milliseconds)
File
- webprofiler/
src/ Stopwatch.php, line 529
Class
- StopwatchPeriod
- Class StopwatchPeriod
Namespace
Drupal\webprofilerCode
public function getDuration() {
return $this->end - $this->start;
}