Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33358 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88474 invoked by uid 1010); 20 Nov 2007 10:20:34 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 88459 invoked from network); 20 Nov 2007 10:20:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Nov 2007 10:20:34 -0000 Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 204.11.219.139 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 204.11.219.139 mail.lerdorf.com Received: from [204.11.219.139] ([204.11.219.139:40598] helo=mail.lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CE/2A-22278-0F4B2474 for ; Tue, 20 Nov 2007 05:20:33 -0500 Received: from trainburn-lm-corp-yahoo-com.local ([217.112.76.138]) (authenticated bits=0) by mail.lerdorf.com (8.14.2/8.14.2/Debian-1) with ESMTP id lAKAKQPK003147 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 20 Nov 2007 02:20:28 -0800 Message-ID: <4742B4E6.8040100@lerdorf.com> Date: Tue, 20 Nov 2007 11:20:22 +0100 User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Sam Barrow CC: internals@lists.php.net References: <1195140437.23612.5.camel@sbarrow-desktop> <200711190003.40228.larry@garfieldtech.com> <23.9D.31009.0A821474@pb1.pair.com> <200711190044.25638.larry@garfieldtech.com> <58.50.31009.62631474@pb1.pair.com> <1195487551.7144.1.camel@sbarrow-desktop> <7d5a202f0711191253g112420afg8f9694977c673b03@mail.gmail.com> <1195509398.19467.5.camel@sbarrow-desktop> In-Reply-To: <1195509398.19467.5.camel@sbarrow-desktop> X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.91.2/4854/Tue Nov 20 00:17:56 2007 on colo.lerdorf.com X-Virus-Status: Clean Subject: Re: [PHP-DEV] $_SERVER['REQUEST_TIME'] From: rasmus@lerdorf.com (Rasmus Lerdorf) Sam Barrow wrote: > This was a good idea, however it could be even more useful if used to > calculate the execution time of your scripts. But since it only counts > whole seconds, for this microtime() would be better. Would it be > possible to add $_SERVER['REQUEST_MICROTIME']? This has nothing to do with execution time, it simply gives you the time of the request in order to save a system call because that system call has already been done up the chain. Doing an automatic microtime call, would add an additional system call to applications that may never use it, so no, that would not be a good idea. -Rasmus