X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FWCY.pm;h=ef536ddb2fa8681c986766f67537f84d1cc7fefb;hb=766014807e2521cc60a219c6eda5b49d13ffc70f;hp=534d89d76ca9b2ce3ecf7dbaafe551d70e5501b2;hpb=56b93915d65c299a5f2d2e555ee361c056773843;p=spider.git diff --git a/perl/WCY.pm b/perl/WCY.pm index 534d89d7..ef536ddb 100644 --- a/perl/WCY.pm +++ b/perl/WCY.pm @@ -16,6 +16,7 @@ use Julian; use IO::File; use DXDebug; use Data::Dumper; +use Time::HiRes qw(gettimeofday tv_interval); use strict; @@ -64,9 +65,10 @@ sub init $fp = DXLog::new('wcy', 'dat', 'm'); do "$param" if -e "$param"; # read in existing data + my $t0 = [gettimeofday]; @cache = readfile($main::systime); shift @cache while @cache > $maxcache; - dbg(sprintf "WCY read in last %d records into cache", scalar @cache); + dbg(sprintf "WCY read in last %d records into cache %dmS", scalar @cache, _diffms($t0)); confess $@ if $@; }