note 55061 added to function.microtime
| From: | sobstel at sopel dot webd dot pl | Date: | Sun, 24 Jul 2005 11:13:01 +0000 |
| Subject: | note 55061 added to function.microtime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-92374@lists.php.net to get a copy of this message | ||
in PHP 5 the following is enough :
<?php
$start = microtime(true);
// code
$end = microtime(true);
$gen_time = $end - $start;
?>
that's all. it should be written in manual anyway
----
Manual Page -- http://www.php.net/manual/en/function.microtime.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+55061
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55061&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55061&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55061&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55061&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55061&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55061&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+55061&report=yes
Search -- http://master.php.net/manage/user-notes.php