Re: How can i calculate total process time?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux