You are here

public function StopwatchEvent::lap in Devel 8.2

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

Stops the current period and then starts a new one.

Return value

StopwatchEvent The event

File

webprofiler/src/Stopwatch.php, line 389

Class

StopwatchEvent
Class StopwatchEvent

Namespace

Drupal\webprofiler

Code

public function lap() {
  return $this
    ->stop()
    ->start();
}