]> git.llucax.com Git - software/blitiri.git/commitdiff
Add the total render time as a comment when handling CGI
authorLeandro Lucarella <llucax@gmail.com>
Sun, 31 Aug 2008 17:44:53 +0000 (14:44 -0300)
committerLeandro Lucarella <llucax@gmail.com>
Sun, 31 Aug 2008 17:53:34 +0000 (14:53 -0300)
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())