note 109081 added to function.microtime
| From: | maxim at inbox dot ru | Date: | Tue, 19 Jun 2012 15:37:14 +0000 |
| Subject: | note 109081 added to function.microtime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-188696@lists.php.net to get a copy of this message | ||
Same as 'langpavel at phpskelet dot org' but in one row:
<?php
function get_execution_time()
{
static $microtime_start = null;
return $microtime_start === null ? $microtime_start = microtime(true) : microtime(true) -
$microtime_start;
}
get_execution_time();
?>
----
Server IP: 195.54.192.44
Probable Submitter: 95.221.42.151
----
Manual Page -- http://www.php.net/manual/en/function.microtime.php
Edit -- https://master.php.net/note/edit/109081
Del: integrated -- https://master.php.net/note/delete/109081/integrated
Del: useless -- https://master.php.net/note/delete/109081/useless
Del: bad code -- https://master.php.net/note/delete/109081/bad+code
Del: spam -- https://master.php.net/note/delete/109081/spam
Del: non-english -- https://master.php.net/note/delete/109081/non-english
Del: in docs -- https://master.php.net/note/delete/109081/in+docs
Del: other reasons-- https://master.php.net/note/delete/109081
Reject -- https://master.php.net/note/reject/109081
Search -- https://master.php.net/manage/user-notes.php