public function StopwatchEvent::lap in Devel 4.x
Same name and namespace in other branches
- 8.3 webprofiler/src/Stopwatch.php \Drupal\webprofiler\StopwatchEvent::lap()
- 8 webprofiler/src/Stopwatch.php \Drupal\webprofiler\StopwatchEvent::lap()
- 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\webprofilerCode
public function lap() {
return $this
->stop()
->start();
}