git » blitiri » commit eee424f

Add the total render time as a comment when handling CGI

author Leandro Lucarella
2008-08-31 17:44:53 UTC
committer Leandro Lucarella
2008-08-31 17:53:34 UTC
parent d8ed1f5b954040f961649da0eac9a85af3e556c2

Add the total render time as a comment when handling CGI

blitiri.cgi +3 -0

diff --git a/blitiri.cgi b/blitiri.cgi
index 2a5df90..b158380 100755
--- a/blitiri.cgi
+++ b/blitiri.cgi
@@ -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())