From: Jeroen van Wolffelaar Date: Thu, 2 Feb 2006 12:47:44 +0000 (+0000) Subject: Print total page evaluation time if debug allowed (also nice hint that you X-Git-Tag: switch-to-templates~194 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=65ac54e423b34976913aa218301a02b3f7dda4eb;p=deb%2Fpackages.git Print total page evaluation time if debug allowed (also nice hint that you left that on in production) --- 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; }