function 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;
}