public function Stopwatch::lap

Stops then restarts an event.

Parameters

string $name The event name:

Return value

StopwatchEvent A StopwatchEvent instance

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Debug/Stopwatch.php, line 102

Class

Stopwatch
Stopwatch provides a way to profile code.

Namespace

Symfony\Component\HttpKernel\Debug

Code

public function lap($name) {
  return end($this->activeSections)
    ->stopEvent($name)
    ->start();
}