]> git.deb.at Git - deb/packages.git/commitdiff
Print total page evaluation time if debug allowed (also nice hint that you
authorJeroen van Wolffelaar <jeroen@wolffelaar.nl>
Thu, 2 Feb 2006 12:47:44 +0000 (12:47 +0000)
committerJeroen van Wolffelaar <jeroen@wolffelaar.nl>
Thu, 2 Feb 2006 12:47:44 +0000 (12:47 +0000)
left that on in production)

cgi-bin/search_packages.pl

index 255cd566370ad54271338a983a916377bba1122f..e5bcae588de9ea1205dda557e7831aeae86aeea9 100755 (executable)
@@ -597,6 +597,10 @@ print <<END;
 </div>
 END
 
+my $pete = new Benchmark;
+my $petd = timediff($pete, $pet0);
+print "Total page evaluation took ".timestr($petd)."<br>"
+    if $debug_allowed;
 print $input->end_html;
 }