Using the unix shell, you could run your script as a child of the "time" utility. For example,


time perl yourscript.pl


On Mon, 4 Oct 2004, Octavian Rasnita wrote:

Hello,

I have tried to put the following code at the end of a script that downloads
something from the web using LWP::UserAgent, in order to write the number of
seconds it took the script to run, but it writes much less than it should:

print "" . (times)[0];

Please tell me how to get the time needed for a script to download something
using the LWP::UserAgent module.

Thanks.

Teddy

Reply via email to