Parag Kalra wrote:
Hello All,

Hello,

I am looking for a simple way to determine the time taken by any Perl
script.

A simple method would be to put this line somewhere in your program:

END { warn time - $^T, " seconds elapsed\n" }


A specific module to determine the time of execution will also do.

http://search.cpan.org/~timb/Devel-NYTProf-2.10/lib/Devel/NYTProf.pm

perldoc Benchmark




John
--
The programmer is fighting against the two most
destructive forces in the universe: entropy and
human stupidity.               -- Damian Conway

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to