function StopwatchEvent::getEndTime

Gets the relative time of the end of the last period.

Return value

integer The time (in milliseconds)

File

webprofiler/src/Stopwatch.php, line 425

Class

StopwatchEvent
Class StopwatchEvent

Namespace

Drupal\webprofiler

Code

public function getEndTime() {
    return ($count = count($this->periods)) ? $this->periods[$count - 1]
        ->getEndTime() : 0;
}