Help for this page

Select Code to Download


  1. or download this
    use Benchmark;
    
    ...
    my $end2 = Benchmark->new();
    my $diff2 = timediff($end2, $start2);
    print "Section 2: ", timestr($diff2);
    
  2. or download this
    use Benchmark;
    
    ...
    foreach my $b (keys %benchs) {
        print "$b: " ,timestr(timediff($benchs{$b}{end}, $benchs{$b}{start
    +})),"\n";
    }