mbeast has asked for the wisdom of the Perl Monks concerning the following question:
I've also tried this:use Benchmark; use Time::HiRes qw(gettimeofday tv_interval); sub handler { my $start_time = new Benchmark; some subs; my $end_time = new Benchmark; my $compute_time = timediff($end_time, $start_time); }
with the same results. (0.01562500, 0.03125000, 0.04687500,...)use Time::HiRes qw(gettimeofday tv_interval); sub handler { my $start_time = [ gettimeofday ]; some subs; my $end_time = [ gettimeofday ]; my $compute_time = tv_interval($start_time_t,$end_time_t); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: mod_perl 2.0 and Benchmark and Time::Hires results in multiples of .015625
by simonm (Vicar) on Oct 22, 2004 at 14:49 UTC | |
|
Re: mod_perl 2.0 and Benchmark and Time::Hires results in multiples of .015625
by iburrell (Chaplain) on Oct 22, 2004 at 16:51 UTC |