in reply to Re: How to measure time for a particular code section?
in thread How to measure time for a particular code section?
And then it returns: 18 wallclock secs (14.59 usr + 0.97 sys = 15.55 CPU) However it takes much more than that. Could you help me about this? I'm a bit confused. Thank you.$start = Benchmark->new(); #RUN THE ALGORITHM @sorted_numbers = sort { $a <=> $b } @numbers; $end = Benchmark->new(); $diff = timediff( $end, $start );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to measure time for a particular code section?
by zentara (Cardinal) on Nov 25, 2012 at 11:51 UTC | |
by abdullah.yildiz (Novice) on Nov 25, 2012 at 12:18 UTC | |
|
Re^3: How to measure time for a particular code section?
by Anonymous Monk on Nov 24, 2012 at 21:51 UTC | |
by abdullah.yildiz (Novice) on Nov 24, 2012 at 22:07 UTC |