note 44643 added to function.microtime

From: Date: Wed, 11 Aug 2004 22:01:25 +0000
Subject: note 44643 added to function.microtime
Groups: php.notes 
Request: Send a blank email to php-notes+get-74501@lists.php.net to get a copy of this message
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, '.', ','); ?> ---- Manual Page -- http://www.php.net/manual/en/function.microtime.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+44643 Delete -- http://master.php.net/manage/user-notes.php?action=delete+44643&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+44643&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#74501) next »