in reply to elapsed times
Perl has the Benchmark module, which is even part of the standard distribution of Perl. So most likely you will want to use that module.