public function StopwatchEvent::getEndTime in Devel 4.x
Same name and namespace in other branches
- 8.3 webprofiler/src/Stopwatch.php \Drupal\webprofiler\StopwatchEvent::getEndTime()
- 8 webprofiler/src/Stopwatch.php \Drupal\webprofiler\StopwatchEvent::getEndTime()
- 8.2 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\webprofilerCode
public function getEndTime() {
return ($count = count($this->periods)) ? $this->periods[$count - 1]
->getEndTime() : 0;
}