Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13475 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96534 invoked by uid 1010); 22 Oct 2004 21:01:14 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 94485 invoked from network); 22 Oct 2004 21:00:42 -0000 Received: from unknown (HELO jdi.jdimedia.nl) (212.204.192.51) by pb1.pair.com with SMTP; 22 Oct 2004 21:00:42 -0000 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.11/8.12.11) with ESMTP id i9ML0fMZ004377 for ; Fri, 22 Oct 2004 23:00:41 +0200 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.11/8.12.11) with ESMTP id i9ML0ctR004353; Fri, 22 Oct 2004 23:00:39 +0200 Date: Fri, 22 Oct 2004 23:00:38 +0200 (CEST) X-X-Sender: derick@localhost To: dharana cc: Ilia Alshanetsky , internals@lists.php.net In-Reply-To: <41797423.4060405@dharana.net> Message-ID: References: <417970E3.7080001@prohost.org> <41797423.4060405@dharana.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at jdimedia.nl Subject: Re: [PHP-DEV] PHP 5.1 time() caching From: derick@php.net (Derick Rethans) 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