Take the time at the start and end of the program and subtract the first from the second.
You may want to look at Time::HiRes if you want sub-second accuracy.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: calculate the time taken to run a script
by davorg
in thread calculate the time taken to run a script
by rsennat
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |