It gives you the difference with a lot more precision that whole seconds, but if that's what you care about it should eb easy to round the number.use Time::HiRes; ... my $start = Time::HiRes::time(); ... do your job ... my $stop = Time::HiRes::time(); my $duration = $stop-$start;
In reply to Re^2: Finding Time Difference of Localtime
by RaduH
in thread Finding Time Difference of Localtime
by monkfan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |