Stops an event.
string $name The event name:
StopwatchEvent The event
\LogicException When the event has not been started
public function stopEvent($name) {
if (!isset($this->events[$name])) {
throw new \LogicException(sprintf('Event "%s" is not started.', $name));
}
return $this->events[$name]
->stop();
}