in reply to Re^2: Clocking Portion of Your Perl Code
in thread Clocking Portion of Your Perl Code

Check these methods in Benchmark:
timethis timeit countit
Regards,
Edward