in reply to Re: Clocking Portion of Your Perl Code
in thread Clocking Portion of Your Perl Code
Print this:my @acc_array; foreach(@somearray){ if($cond ==1) { my $a = Benchmark::Timer->new(skip => 0); $a->start('tag'); @acc_array = &some_long_running_func($_); $a->stop('tag'); print $a->report; } }
Instead of giving the time. What's wrong with my code?Processed: 1 tag still running at mycode.pl line 223 Processed: 2 tag still running at mycode.pl line 223
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Clocking Portion of Your Perl Code
by BrowserUk (Patriarch) on Jun 12, 2005 at 15:39 UTC |