From: marcos dot neves at gmail dot com Operating system: any PHP version: 5.1.0b3 PHP Bug Type: Feature/Change Request Bug description: $_SERVER['STARTUP_MICRO_TIME']
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 bug report at http://bugs.php.net/?id=33893&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33893&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33893&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33893&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33893&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33893&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33893&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33893&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33893&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33893&r=support Expected behavior: http://bugs.php.net/fix.php?id=33893&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33893&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33893&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33893&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33893&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33893&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33893&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33893&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33893&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33893&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33893&r=mysqlcfg