You are here

public function StopwatchEvent::lap in Devel 4.x

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. 8.2 webprofiler/src/Stopwatch.php \Drupal\webprofiler\StopwatchEvent::lap()

Stops the current period and then starts a new one.

Return value

\Symfony\Component\Stopwatch\StopwatchEvent The event.

File

webprofiler/src/Stopwatch.php, line 438

Class

StopwatchEvent
Class StopwatchEvent.

Namespace

Drupal\webprofiler

Code

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