original_string: public function getDuration()
      {
          if (!isset($this->data['events']['__section__'])) {
              return 0;
          }
  
          $lastEvent = $this->data['events']['__section__'];
  
          return $lastEvent->getOrigin() + $lastEvent->getDuration() - $this->getStartTime();
      }
code: public function getDuration()
      {
          if (!isset($this->data['events']['__section__'])) {
              return 0;
          }
  
          $lastEvent = $this->data['events']['__section__'];
  
          return $lastEvent->getOrigin() + $lastEvent->getDuration() - $this->getStartTime();
      }
code_tokens: public function getDuration ( ) { if ( ! isset ( $ this -> data [ 'events' ] [ '__section__' ] ) ) { return 0 ; } $ lastEvent = $ this -> data [ 'events' ] [ '__section__' ] ; return $ lastEvent -> getOrigin ( ) + $ lastEvent -> getDuration ( ) - $ this -> getStartTime ( ) ; }
docstring: Gets the request elapsed time.
  
  @return float The elapsed time
docstring_tokens: Gets the request elapsed time .