+import time
from nevow import rend, inevow, tags as T
from allmydata.web.common import getxmlfile, get_arg
from allmydata.interfaces import ICheckerResults, IDeepCheckResults
if return_to:
return T.div[T.a(href=return_to)["Return to parent directory"]]
return ""
+
+ def render_runtime(self, ctx, data):
+ req = inevow.IRequest(ctx)
+ runtime = time.time() - req.processing_started_timestamp
+ return ctx.tag["runtime: %s seconds" % runtime]
+import time
from twisted.application import service, strports, internet
from twisted.web import http
from twisted.internet import defer
## self.channel.transport.loseConnection()
## return
## raise
+ self.processing_started_timestamp = time.time()
self.process()
def _logger(self):