I use this:
function getmicrotime()
{
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec*1000);
}
$time=getmicrotime();
echo "Page was generated in
".sprintf("%01.7f",((getmicrotime()-$time)/1000))." seconds.";
Emo
"Jack Sasportas" <[EMAIL PROTECTED]> p�se v diskusn�m pr�spevku
news:[EMAIL PROTECTED]
> I am trying to find a function or information on how to properly take a
> start time and an end time from mysql timestamps in order to calculate
> time taken.
> So in theory $endtime-$starttime = timespent.
>
> It would be great if this understood that 11:55 pm til 12:10am one day
> apart only equals 15 minutes.
>
> Links, example code etc would be great!
>
> Thanks
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php