function StopwatchEvent::ensureStopped

Stops all non already stopped periods.

File

webprofiler/src/Stopwatch.php, line 396

Class

StopwatchEvent
Class StopwatchEvent

Namespace

Drupal\webprofiler

Code

public function ensureStopped() {
    while (count($this->started)) {
        $this->stop();
    }
}