public function getDuration(): float {
        return $this->duration ? $this->duration : microtime(true) - $this->startTime;
    }
public function getDuration(): float {
        return $this->duration ? $this->duration : microtime(true) - $this->startTime;
    }
public function getDuration ( ) : float { return $ this -> duration ? $ this -> duration : microtime ( true ) - $ this -> startTime ; }
Get execution time

@return float
Get execution time