You are here

public function StopwatchPeriod::getDuration in Devel 8

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Stopwatch.php \Drupal\webprofiler\StopwatchPeriod::getDuration()
  2. 8.2 webprofiler/src/Stopwatch.php \Drupal\webprofiler\StopwatchPeriod::getDuration()
  3. 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\webprofiler

Code

public function getDuration() {
  return $this->end - $this->start;
}