![]() |
Script Execution Time Class
2 Attachment(s)
This script will calculate the execution time of your PHP scripts. The features are as follows:
The index.php bundled with the script contains the instructions on how to use it. The file also contains example code which can be removed. All you need to calculate and output the execution time is: 1 - Include (SSI) the execution time class to your page: PHP Code:
PHP Code:
PHP Code:
PHP Code:
Article: For the TalkPHP article on execution times, please see this page. |
For the PHP5 version: as of PHP 5.0.0 there is a single, optional argument for microtime which is get_as_float (bool). Using this argument would allow you to make your start/stop functions "one liners". :)
|
Updated. I do assume you meant like that. I noticed the optional argument but I didn't actually check PHP.net to understand it further. Thanks for pointing it out.
|
| All times are GMT. The time now is 12:44 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0