public function stop()
    {
        if (!\count($this->started)) {
            throw new \LogicException('stop() called but start() has not been called before.');
        }

        $this->periods[] = new StopwatchPeriod(array_pop($this->started), $this->getNow(), $this->morePrecision);

        return $this;
    }
public function stop()
    {
        if (!\count($this->started)) {
            throw new \LogicException('stop() called but start() has not been called before.');
        }

        $this->periods[] = new StopwatchPeriod(array_pop($this->started), $this->getNow(), $this->morePrecision);

        return $this;
    }
public function stop ( ) { if ( ! \ count ( $ this -> started ) ) { throw new \ LogicException ( 'stop() called but start() has not been called before.' ) ; } $ this -> periods [ ] = new StopwatchPeriod ( array_pop ( $ this -> started ) , $ this -> getNow ( ) , $ this -> morePrecision ) ; return $ this ; }
Stops the last started event period.

@return $this

@throws \LogicException When stop() is called without a matching call to start()
Stops the last started event period .