Use as many or as few of those Benchmark objects as you'd like at any point in the program. The CPAN docs on Benchmark are great, but I thought it may be helpful to see the code right here. Instant gratification is key. :)use Benchmark; my $t0 = new Benchmark; # See code run my $t1 = new Benchmark; my $td = timediff($t1, $t0); print timestr($td) . "\n";
In reply to Sample code for Benchmark
by joealba
in thread Timing Your Program
by VicBalta
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |