public function getTotalDuration(): float
    {
        $time = 0;
        foreach ($this->data['queries'] as $command) {
            $time += $command['duration'];
        }

        return $time;
    }
public function getTotalDuration(): float
    {
        $time = 0;
        foreach ($this->data['queries'] as $command) {
            $time += $command['duration'];
        }

        return $time;
    }
public function getTotalDuration ( ) : float { $ time = 0 ; foreach ( $ this -> data [ 'queries' ] as $ command ) { $ time += $ command [ 'duration' ] ; } return $ time ; }
Returns the execution time of all collected requests in seconds.

@return float
Returns the execution time of all collected requests in seconds .