note 44643 deleted from function.microtime by tomsommer
| From: | tomsommer@php.net | Date: | Wed, 11 Aug 2004 23:18:07 +0000 |
| Subject: | note 44643 deleted from function.microtime by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-74505@lists.php.net to get a copy of this message | ||
Note Submitter: dillo@gmx.ch
----
the easiest way of getting the run-time of your script is in my opinion the following:
<?PHP
$diff = array_sum(explode(' ', microtime()));
// php-code
echo number_format(array_sum(explode(' ', microtime())) - $diff, 3, '.',
',');
?>