You are here

public function StopwatchEvent::getStartTime in Devel 8.2

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

Gets the relative time of the start of the first period.

Return value

integer The time (in milliseconds)

File

webprofiler/src/Stopwatch.php, line 416

Class

StopwatchEvent
Class StopwatchEvent

Namespace

Drupal\webprofiler

Code

public function getStartTime() {
  return isset($this->periods[0]) ? $this->periods[0]
    ->getStartTime() : 0;
}