Re: PHP 5.1 time() caching
| From: | Derick Rethans | Date: | Fri, 22 Oct 2004 21:00:38 +0000 |
| Subject: | Re: PHP 5.1 time() caching | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-13475@lists.php.net to get a copy of this message | ||
On Fri, 22 Oct 2004, dharana wrote:
> Ilia Alshanetsky wrote:
>
> > . Since a lot of script end up having to fetch request start time, this
> > can be used to save on a timing call
> > (This information only has second precision, no microseconds).
>
> I would think the reason for fetching request start time is to profile
> execution time (the first line you would see in my scripts is always
> $time_start = microtime()) or maybe it's just me, of course.
For that the granularity is not good enough though.
> > The question is what would be the best way to provide this information
> > within the script. The two alternatives are: adding a new function to
> > get this info or storing this data inside $_SERVER.
$_SERVER
Derick
--
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org