note 70137 deleted from function.microtime by tularis

From: Date: Sun, 22 Jun 2008 12:08:18 +0000
Subject: note 70137 deleted from function.microtime by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-140677@lists.php.net to get a copy of this message
Note Submitter: sergey89 at gmail dot com ---- 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()); ?>

« previous php.notes (#140677) next »