stupid timing
| From: | John Fishworld | Date: | Mon, 16 Sep 2002 12:05:35 +0000 |
| Subject: | stupid timing | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-116507@lists.php.net to get a copy of this message | ||
Can someone tell me whats wrong with this ??
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$endtime = $mtime;
$totaltime = ($endtime - $starttime);
printf("<center>Page created in %f seconds.</center>", $totaltime);
It should be dealing in microseconds but instead I'm getting answers like
this
Page created in 1032177619.811301 seconds
er...somethings wrong !
thanks