note 126386 added to function.microtime

From: Date: Sat, 04 Sep 2021 12:51:29 +0000
Subject: note 126386 added to function.microtime
Groups: php.notes 
Request: Send a blank email to php-notes+get-216858@lists.php.net to get a copy of this message
In regard to my previous comment, usiung the new method place this code as near as practical to the conclusion of page generation. It is self-contained. ```php <li>(PageGen <?php $tt = number_format(rtrim(sprintf("%.20f", (microtime(true) - $_SERVER['REQUEST_TIME_FLOAT'])), "0"),6,'.',','); if (strpos(($tt."0"), "0") != 0) { $tt = number_format($tt,2,'.',','); } echo $tt; ?> Seconds)</li> ``` ---- Server IP: 45.112.84.4 Probable Submitter: 45.112.85.242 (proxied: 159.196.71.245) ---- Manual Page -- https://php.net/manual/en/function.microtime.php Edit -- https://main.php.net/note/edit/126386 Del: integrated -- https://main.php.net/note/delete/126386/integrated Del: useless -- https://main.php.net/note/delete/126386/useless Del: bad code -- https://main.php.net/note/delete/126386/bad+code Del: spam -- https://main.php.net/note/delete/126386/spam Del: non-english -- https://main.php.net/note/delete/126386/non-english Del: in docs -- https://main.php.net/note/delete/126386/in+docs Del: other reasons-- https://main.php.net/note/delete/126386 Reject -- https://main.php.net/note/reject/126386 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#216858) next »