function Section::lap
Stops then restarts an event.
Parameters
string $name The event name:
Return value
StopwatchEvent The event
Throws
\LogicException When the event has not been started
File
-
webprofiler/
src/ Stopwatch.php, line 276
Class
- Section
- @internal This class is for internal usage only
Namespace
Drupal\webprofilerCode
public function lap($name) {
return $this->stopEvent($name)
->start();
}