]> git.llucax.com Git - software/blitiri.git/blobdiff - blitiri.cgi
Add the total render time as a comment when handling CGI
[software/blitiri.git] / blitiri.cgi
index 2a5df90f29f0fdf3b70b13a75f2aa56cb3eefc4f..b158380c7a1dbfcaba7e9bd5e67f00b90b17a6a7 100755 (executable)
@@ -1251,7 +1251,10 @@ def handle_cmd():
 
 
 if os.environ.has_key('GATEWAY_INTERFACE'):
+       i = datetime.datetime.now()
        handle_cgi()
+       f = datetime.datetime.now()
+       print '<!-- render time: %s -->' % (f-i)
 else:
        sys.exit(handle_cmd())