code: def _time_request(self, uri, method, **kwargs):
          
          start_time = time.time()
          resp, body = self.request(uri, method, **kwargs)
          self.times.append(("%s %s" % (method, uri),
                  start_time, time.time()))
          return resp, body
docs: Wraps the request call and records the elapsed time.