X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FGeomag.pm;h=f8a1ec720c0d820f9c82ee1e3eee9635098b57e2;hb=766014807e2521cc60a219c6eda5b49d13ffc70f;hp=9b4421d821cb10c4b2db24277536d28eba6ec1db;hpb=56b93915d65c299a5f2d2e555ee361c056773843;p=spider.git diff --git a/perl/Geomag.pm b/perl/Geomag.pm index 9b4421d8..f8a1ec72 100644 --- a/perl/Geomag.pm +++ b/perl/Geomag.pm @@ -17,6 +17,7 @@ use Julian; use IO::File; use DXDebug; use DXDupe; +use Time::HiRes qw(gettimeofday tv_interval); use strict; @@ -63,9 +64,11 @@ sub init $fp = DXLog::new('wwv', 'dat', 'm'); do "$param" if -e "$param"; # read in existing data + my $t0 = [gettimeofday]; + dbg(sprintf "WWV read in upto %d records into cache", $maxcache); @cache = readfile($main::systime); shift @cache while @cache > $maxcache; - dbg(sprintf "WWV read in last %d records into cache", scalar @cache); + dbg(sprintf "WWV read in last %d records into cache in %dmS", scalar @cache, _diffms($t0)); confess $@ if $@; }