public function getSummary()
    {
        $this->stop();

        if ($this->start !== null) {
            $summary = $this->end - $this->start;
            $summary = round($summary, 2);

            return $summary;

        } else {
            throw new LogicException('Timer was not started');
        }
    }
public function getSummary()
    {
        $this->stop();

        if ($this->start !== null) {
            $summary = $this->end - $this->start;
            $summary = round($summary, 2);

            return $summary;

        } else {
            throw new LogicException('Timer was not started');
        }
    }
public function getSummary ( ) { $ this -> stop ( ) ; if ( $ this -> start !== null ) { $ summary = $ this -> end - $ this -> start ; $ summary = round ( $ summary , 2 ) ; return $ summary ; } else { throw new LogicException ( 'Timer was not started' ) ; } }
Retrieves summary time

@throws \LogicException if timer was not started
@return string
Retrieves summary time