private function collectTime(GuzzleRequestInterface $request)
    {
        $response = $request->getResponse();

        return array(
            'total'      => $response->getInfo('total_time'),
            'connection' => $response->getInfo('connect_time')
        );
    }
private function collectTime(GuzzleRequestInterface $request)
    {
        $response = $request->getResponse();

        return array(
            'total'      => $response->getInfo('total_time'),
            'connection' => $response->getInfo('connect_time')
        );
    }
private function collectTime ( GuzzleRequestInterface $ request ) { $ response = $ request -> getResponse ( ) ; return array ( 'total' => $ response -> getInfo ( 'total_time' ) , 'connection' => $ response -> getInfo ( 'connect_time' ) ) ; }
Collect time for a Guzzle request

@param Guzzle\Http\Message\RequestInterface $request

@return array
Collect time for a Guzzle request