You are here

public function Stopwatch::stop in Devel 8.3

Same name and namespace in other branches
  1. 8 webprofiler/src/Stopwatch.php \Drupal\webprofiler\Stopwatch::stop()
  2. 8.2 webprofiler/src/Stopwatch.php \Drupal\webprofiler\Stopwatch::stop()
  3. 4.x webprofiler/src/Stopwatch.php \Drupal\webprofiler\Stopwatch::stop()

Stops an event.

Parameters

string $name: The event name.

Return value

\Symfony\Component\Stopwatch\StopwatchEvent A StopwatchEvent instance

1 call to Stopwatch::stop()
Stopwatch::stopSection in webprofiler/src/Stopwatch.php
Stops the last started section.

File

webprofiler/src/Stopwatch.php, line 121

Class

Stopwatch
Class Stopwatch.

Namespace

Drupal\webprofiler

Code

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