note 109560 added to function.microtime
| From: | maxim at inbox dot ru | Date: | Sat, 28 Jul 2012 15:02:38 +0000 |
| Subject: | note 109560 added to function.microtime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-189440@lists.php.net to get a copy of this message | ||
one more compact solution
<?php
function get_mt() {static $mt; return $mt?microtime(true)-$mt:$mt=microtime(true);}
?>
BUT dunno why but 2nd microtimer is a bigger then previous execution o.O
----
Server IP: 195.54.192.44
Probable Submitter: 95.221.32.63
----
Manual Page -- http://www.php.net/manual/en/function.microtime.php
Edit -- https://master.php.net/note/edit/109560
Del: integrated -- https://master.php.net/note/delete/109560/integrated
Del: useless -- https://master.php.net/note/delete/109560/useless
Del: bad code -- https://master.php.net/note/delete/109560/bad+code
Del: spam -- https://master.php.net/note/delete/109560/spam
Del: non-english -- https://master.php.net/note/delete/109560/non-english
Del: in docs -- https://master.php.net/note/delete/109560/in+docs
Del: other reasons-- https://master.php.net/note/delete/109560
Reject -- https://master.php.net/note/reject/109560
Search -- https://master.php.net/manage/user-notes.php