You are here

public function StopwatchEvent::getEndTime in Devel 8.3

Same name and namespace in other branches
  1. 8 webprofiler/src/Stopwatch.php \Drupal\webprofiler\StopwatchEvent::getEndTime()
  2. 8.2 webprofiler/src/Stopwatch.php \Drupal\webprofiler\StopwatchEvent::getEndTime()
  3. 4.x webprofiler/src/Stopwatch.php \Drupal\webprofiler\StopwatchEvent::getEndTime()

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

Return value

int The time (in milliseconds).

File

webprofiler/src/Stopwatch.php, line 477

Class

StopwatchEvent
Class StopwatchEvent.

Namespace

Drupal\webprofiler

Code

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