--- trunk/run.pl 2005/12/31 14:00:36 335 +++ trunk/run.pl 2006/01/22 13:38:17 389 @@ -17,6 +17,7 @@ use YAML qw/LoadFile/; use Getopt::Long; use File::Path; +use Time::HiRes qw/time/; =head1 NAME @@ -76,6 +77,7 @@ die "no databases in config file!\n" unless ($config->{databases}); my $total_rows = 0; +my $start_t = time(); while (my ($database, $db_config) = each %{ $config->{databases} }) { @@ -205,7 +207,12 @@ }; - $log->info("$total_rows records indexed"); + my $dt = time() - $start_t; + $log->info("$total_rows records indexed in " . + sprintf("%.2f sec [%.2f rec/sec]", + $dt, ($total_rows / $dt) + ) + ); # # add Hyper Estraier links to other databases