public function getDuration(int $precision = -1)
    {
        //var_dump($this->duration);
        $duration = $this->duration ?? microtime(true) - $this->startTime;
        return $this->fmtDuration($duration, $precision);
    }
public function getDuration(int $precision = -1)
    {
        //var_dump($this->duration);
        $duration = $this->duration ?? microtime(true) - $this->startTime;
        return $this->fmtDuration($duration, $precision);
    }
public function getDuration ( int $ precision = - 1 ) { //var_dump($this->duration); $ duration = $ this -> duration ?? microtime ( true ) - $ this -> startTime ; return $ this -> fmtDuration ( $ duration , $ precision ) ; }
Get the current duration

@param integer $precision
@return string|float
Get the current duration