Re: Counting the time with fractions of a second. The solution!

2002-07-15 Thread perl-dvd
k the first element of the returned array, which happens to be the "user time consumed". Regards, David - Original Message - From: "Octavian Rasnita" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, July 13, 2002 11:27 AM Subject: Counting the

Counting the time with fractions of a second. The solution!

2002-07-13 Thread Octavian Rasnita
Hi all, I found the easiest solution (until now) for calculating how much time a script runs. Thank you for other solutions, but they are too complicated. Here is the code you should use for calculating the time a script runs: my $start = (times)[0]; #Here goes the script. my $end = (times)[