Re: stupid timing

From: Date: Mon, 16 Sep 2002 11:26:13 +0000
Subject: Re: stupid timing
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-116508@lists.php.net to get a copy of this message
Checkout http://www.php.net/manual/en/function.microtime.php Returns the string "msec sec" where sec is the current time measured in the number of seconds since the Unix Epoch (0:00:00 January 1, 1970 GMT), and msec is the microseconds part. This function is only available on operating systems that support the gettimeofday() system call. Op maandag 16 september 2002 14:05, schreef John Fishworld: > 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

« previous php.general (#116508) next »