good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Loop Timingby BMaximus (Chaplain) |
on Feb 27, 2006 at 17:34 UTC ( [id://533086]=note: print w/replies, xml ) | Need Help?? |
This is what Benchmark is for. So if you want to time how long it took for that particular itteration of the loop through then you would do something like this.
Update: Woops, flipped $bench_1 and $bench_2 to give the correct timing.
BMaximus
In Section
Seekers of Perl Wisdom
|
|