From 65ac54e423b34976913aa218301a02b3f7dda4eb Mon Sep 17 00:00:00 2001 From: Jeroen van Wolffelaar Date: Thu, 2 Feb 2006 12:47:44 +0000 Subject: [PATCH] Print total page evaluation time if debug allowed (also nice hint that you left that on in production) --- cgi-bin/search_packages.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cgi-bin/search_packages.pl b/cgi-bin/search_packages.pl index 255cd56..e5bcae5 100755 --- a/cgi-bin/search_packages.pl +++ b/cgi-bin/search_packages.pl @@ -597,6 +597,10 @@ print < END +my $pete = new Benchmark; +my $petd = timediff($pete, $pet0); +print "Total page evaluation took ".timestr($petd)."
" + if $debug_allowed; print $input->end_html; } -- 2.39.2