note 69315 added to function.microtime
| From: | blade106NOSPAM at free dot fr | Date: | Thu, 31 Aug 2006 10:44:52 +0000 |
| Subject: | note 69315 added to function.microtime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-116537@lists.php.net to get a copy of this message | ||
To simulate the new parameter under PHP 5 and below, just use :
time() + microtime()
this can be used as following :
<?php
$start = time() + microtime();
// do some stuff here
echo time() + microtime() - $start, ' seconds to produce result';
?>
Enjoy ;o)
----
Server IP: 195.221.21.36
Probable Submitter: 82.232.64.49
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.microtime.php
Edit -- https://master.php.net/note/edit/69315
Del: integrated -- https://master.php.net/note/delete/69315/integrated
Del: useless -- https://master.php.net/note/delete/69315/useless
Del: bad code -- https://master.php.net/note/delete/69315/bad+code
Del: spam -- https://master.php.net/note/delete/69315/spam
Del: non-english -- https://master.php.net/note/delete/69315/non-english
Del: in docs -- https://master.php.net/note/delete/69315/in+docs
Del: other reasons-- https://master.php.net/note/delete/69315
Reject -- https://master.php.net/note/reject/69315
Search -- https://master.php.net/manage/user-notes.php