Edit report at http://bugs.php.net/bug.php?id=33893&edit=1
ID: 33893 Updated by: [email protected] 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
