note 26949 added to function.microtime
| From: | master at xyborx dot dk | Date: | Mon, 18 Nov 2002 22:20:04 +0000 |
| Subject: | note 26949 added to function.microtime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-39658@lists.php.net to get a copy of this message | ||
tonicpeddler> I had the same problem. The thing is, you cant simply say $endtime-$starttime,
tonicpeddler> because they are organised in a way that doesn't allow that (look in the function describtion
tonicpeddler> for more details). You need to somehow calculate the microseconds and the seconds seperately.
I haven't yet had a closer look on this function or how it works, so I might be wrong. At
least, I didn't manage to create my own runtime-counter for my website, so I simply grapped it
from somewhere else :)
--
http://www.php.net/manual/en/function.microtime.php
http://master.php.net/manage/user-notes.php?action=edit+26949
http://master.php.net/manage/user-notes.php?action=delete+26949
http://master.php.net/manage/user-notes.php?action=reject+26949