http://www.perlmonks.org?node_id=553532


in reply to Find Execution time of perl script??

I dont have privilege to download modules

You don't have permissions to write to your own home directories? ...odd.

Is there any other way to find the execution time of perl script?

On a *nix system, you can use the time command, eg:

time ./foo.pl real 0m0.014s user 0m0.000s sys 0m0.010s

Or, you can make use of the Perl time command to add timestamps at the beginning and end of your script.

#!/usr/bin/perl -w use strict; my $start_run = time(); # all your code here my $end_run = time(); my $run_time = $end_run - $start_run; print "Job took $run_time seconds\n";

If you want greater than 1 second accuracy, then you'll need to use Time::HiRes.

Cheers,
Darren :)