public function getDuration()
    {
        if (!isset($this->data['events']['__section__'])) {
            return 0;
        }

        $lastEvent = $this->data['events']['__section__'];

        return $lastEvent->getOrigin() + $lastEvent->getDuration() - $this->getStartTime();
    }
public function getDuration()
    {
        if (!isset($this->data['events']['__section__'])) {
            return 0;
        }

        $lastEvent = $this->data['events']['__section__'];

        return $lastEvent->getOrigin() + $lastEvent->getDuration() - $this->getStartTime();
    }
public function getDuration ( ) { if ( ! isset ( $ this -> data [ 'events' ] [ '__section__' ] ) ) { return 0 ; } $ lastEvent = $ this -> data [ 'events' ] [ '__section__' ] ; return $ lastEvent -> getOrigin ( ) + $ lastEvent -> getDuration ( ) - $ this -> getStartTime ( ) ; }
Gets the request elapsed time.

@return float The elapsed time
Gets the request elapsed time .