Posted by JoShQuNe on 03/15/05 17:26
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
[Back to original message]
|