public 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

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

Class

Section

Namespace

Symfony\Component\HttpKernel\Debug

Code

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