public function StopwatchPeriod::getDuration in Devel 8.3
Same name and namespace in other branches
- 8 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
int The period duration (in milliseconds).
File
- webprofiler/
src/ Stopwatch.php, line 593
Class
- StopwatchPeriod
- Class StopwatchPeriod.
Namespace
Drupal\webprofilerCode
public function getDuration() {
return $this->end - $this->start;
}