note 70137 added to function.microtime

From: Date: Wed, 04 Oct 2006 19:03:42 +0000
Subject: note 70137 added to function.microtime
Groups: php.notes 
Request: Send a blank email to php-notes+get-118038@lists.php.net to get a copy of this message
Casually to not change saved time of start data it is possible to keep in session. <?php //$start_time = microtime(true); $_SESSION['start_time'] = microtime(true); function execute_time() { return (microtime(true) - $_SESSION['start_time']); } ////some code ////change saved time //$start_time = time(); ////some code printf('Execute time: %.5f', execute_time()); ?> ---- Server IP: 195.222.164.18 Probable Submitter: 213.148.177.241 ---- Manual Page -- http://www.php.net/manual/en/function.microtime.php Edit -- https://master.php.net/note/edit/70137 Del: integrated -- https://master.php.net/note/delete/70137/integrated Del: useless -- https://master.php.net/note/delete/70137/useless Del: bad code -- https://master.php.net/note/delete/70137/bad+code Del: spam -- https://master.php.net/note/delete/70137/spam Del: non-english -- https://master.php.net/note/delete/70137/non-english Del: in docs -- https://master.php.net/note/delete/70137/in+docs Del: other reasons-- https://master.php.net/note/delete/70137 Reject -- https://master.php.net/note/reject/70137 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#118038) next »