function Stopwatch::lap
Stops then restarts an event.
Parameters
string $name The event name:
Return value
StopwatchEvent A StopwatchEvent instance
File
-
webprofiler/
src/ Stopwatch.php, line 119
Class
- Stopwatch
- Class Stopwatch
Namespace
Drupal\webprofilerCode
public function lap($name) {
return end($this->activeSections)
->stopEvent($name)
->start();
}