MCPcopy
hub / github.com/tornadoweb/tornado / request_time

Method request_time

tornado/httputil.py:585–590  ·  view source on GitHub ↗

Returns the amount of time it took for this request to execute.

(self)

Source from the content-addressed store, hash-verified

583 return self.protocol + "://" + self.host + self.uri # type: ignore[operator]
584
585 def request_time(self) -> float:
586 """Returns the amount of time it took for this request to execute."""
587 if self._finish_time is None:
588 return time.time() - self._start_time
589 else:
590 return self._finish_time - self._start_time
591
592 def get_ssl_certificate(
593 self, binary_form: bool = False

Callers 2

_logMethod · 0.80
log_requestMethod · 0.80

Calls 1

timeMethod · 0.80

Tested by

no test coverage detected