note 109560 deleted from function.microtime by danbrown
| From: | danbrown@php.net | Date: | Mon, 30 Jul 2012 15:48:20 +0000 |
| Subject: | note 109560 deleted from function.microtime by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-189479@lists.php.net to get a copy of this message | ||
Note Submitter: maxim at inbox dot ru
----
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