note 76804 added to function.microtime

From: Date: Tue, 31 Jul 2007 13:26:07 +0000
Subject: note 76804 added to function.microtime
Groups: php.notes 
Request: Send a blank email to php-notes+get-129076@lists.php.net to get a copy of this message
Here is a very short and compact way to determine the execution time of a script in seconds, in just two lines: $tm_start = array_sum(explode(' ', microtime())); ... $secs_total = array_sum(explode(' ', microtime())) - $tm_start; Very handy for debugging and testing purposes. ---- Server IP: 195.149.248.161 Probable Submitter: 212.25.59.124 ---- Manual Page -- http://www.php.net/manual/en/function.microtime.php Edit -- https://master.php.net/note/edit/76804 Del: integrated -- https://master.php.net/note/delete/76804/integrated Del: useless -- https://master.php.net/note/delete/76804/useless Del: bad code -- https://master.php.net/note/delete/76804/bad+code Del: spam -- https://master.php.net/note/delete/76804/spam Del: non-english -- https://master.php.net/note/delete/76804/non-english Del: in docs -- https://master.php.net/note/delete/76804/in+docs Del: other reasons-- https://master.php.net/note/delete/76804 Reject -- https://master.php.net/note/reject/76804 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#129076) next »