Re: How can i calculate total process time?
| From: | JoShQuNe \(TR\) | Date: | Tue, 15 Mar 2005 15:26:50 +0000 |
| Subject: | Re: How can i calculate total process time? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-210798@lists.php.net to get a copy of this message | ||
Thnx for yr answers. I fixed it. Problem was the places of codes. They were line under line now i
took to the beginning and itz calculating correctly.. The code was:
//Beginning
$mtime = explode(" ",microtime());
$starttime = $mtime[1] + $mtime[0];
//Just before i print
$mtime = explode(" ",microtime());
$endtime = $mtime[1] + $mtime[0];
//Print prompt
round($endtime-$starttime,3);
Also thanx for reminding abs(), i ll use it..
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com