|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-12-22 03:43 UTC] johannes@php.net
-Status: Open
+Status: Closed
-Package: Feature/Change Request
+Package: *General Issues
-Assigned To:
+Assigned To: johannes
[2010-12-22 03:43 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 23 21:00:01 2025 UTC |
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