You are here

public function StopwatchEvent::start in Devel 8

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

Starts a new event period.

Return value

StopwatchEvent The event

File

webprofiler/src/Stopwatch.php, line 350

Class

StopwatchEvent
Class StopwatchEvent

Namespace

Drupal\webprofiler

Code

public function start() {
  $this->started[] = $this
    ->getNow();
  return $this;
}