public function Section::stopEvent

Stops 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 219

Class

Section

Namespace

Symfony\Component\HttpKernel\Debug

Code

public function stopEvent($name) {
  if (!isset($this->events[$name])) {
    throw new \LogicException(sprintf('Event "%s" is not started.', $name));
  }
  return $this->events[$name]
    ->stop();
}