Here are the examples of the python api cherrypy.request.time taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
3
Source : __init__.py
with GNU General Public License v3.0
from jackaduma
with GNU General Public License v3.0
from jackaduma
def elapsed(self):
""" Yields the elapsed time since the start of the request.
"""
return time.time() - cp.request.time # See also _request_time().
def _cast(self, v):
3
Source : __init__.py
with GNU General Public License v3.0
from jackaduma
with GNU General Public License v3.0
from jackaduma
def _request_start():
# Register request start time.
cp.request.time = time.time()
def _request_end():