Req #33893 [Opn->Csd]: $_SERVER['STARTUP_MICRO_TIME']
| From: | johannes@php.net | Date: | Wed, 22 Dec 2010 02:43:29 +0000 |
| Subject: | Req #33893 [Opn->Csd]: $_SERVER['STARTUP_MICRO_TIME'] | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-157204@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=33893&edit=1
ID: 33893
Updated by: johannes@php.net
Reported by: marcos dot neves at gmail dot com
Summary: $_SERVER['STARTUP_MICRO_TIME']
-Status: Open
+Status: Closed
Type: Feature/Change Request
-Package: Feature/Change Request
+Package: *General Issues
Operating System: any
PHP Version: 5.1.0b3
-Assigned To:
+Assigned To: johannes
Block user comment: N
Private report: N
New Comment:
In PHP trunk $_SERVER['REQUEST_TIME'] contains microsecond precision.
Previous Comments:
------------------------------------------------------------------------
[2005-07-27 23:15:54] marcos dot neves at gmail dot com
Description:
------------
$_SERVER['REQUEST_TIME'] is a very nice feature, But since many scripts
runs in less than 0.1 seconds, would be nice exists a
$_SERVER['STARTUP_MICRO_TIME'], so would be possible do something like
below:
Reproduce code:
---------------
<?
$times['startup'] = $_SERVER['STARTUP_MICRO_TIME']
require_once 'any.php';
$times['require'] = microtime(true);
... // more code
$times['more_code'] = microtime(true);
printTimes($times);
function printTimes($times) {
... // use $_SERVER['REQUEST_MICRO_TIME']
}
?>
Expected result:
----------------
A fine grained time elapse calculation
Actual result:
--------------
not perfect time elapse calculation
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=33893&edit=1