public function stop(int $precision = -1)
    {
        $time = microtime(true);
        if ($this->stopTime === null) {
            $this->stopTime = $time;
            $this->duration = $this->stopTime - $this->startTime;
        }
        return $this->fmtDuration($this->duration, $precision);
    }
public function stop(int $precision = -1)
    {
        $time = microtime(true);
        if ($this->stopTime === null) {
            $this->stopTime = $time;
            $this->duration = $this->stopTime - $this->startTime;
        }
        return $this->fmtDuration($this->duration, $precision);
    }
public function stop ( int $ precision = - 1 ) { $ time = microtime ( true ) ; if ( $ this -> stopTime === null ) { $ this -> stopTime = $ time ; $ this -> duration = $ this -> stopTime - $ this -> startTime ; } return $ this -> fmtDuration ( $ this -> duration , $ precision ) ; }
Stop the timer and calculate the duration

@return float|string The timer duration
Stop the timer and calculate the duration