projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branches 'mojo' and 'test' of ssh://server/scm/spider into test
[spider.git]
/
perl
/
WCY.pm
diff --git
a/perl/WCY.pm
b/perl/WCY.pm
index 534d89d76ca9b2ce3ecf7dbaafe551d70e5501b2..ef536ddb2fa8681c986766f67537f84d1cc7fefb 100644
(file)
--- a/
perl/WCY.pm
+++ b/
perl/WCY.pm
@@
-16,6
+16,7
@@
use Julian;
use IO::File;
use DXDebug;
use Data::Dumper;
use IO::File;
use DXDebug;
use Data::Dumper;
+use Time::HiRes qw(gettimeofday tv_interval);
use strict;
use strict;
@@
-64,9
+65,10
@@
sub init
$fp = DXLog::new('wcy', 'dat', 'm');
do "$param" if -e "$param";
# read in existing data
$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;
@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 $@;
}
confess $@ if $@;
}