This is a discussion on Determine execution time in PHP within the PHP Programming forums, part of the Web Development category; Determine execution time in PHP...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| It will determine the time taken for a php script to execute correct to 0.000000000000001 seconds. <!-- put this at the top of the page --> <?php $mtime = microtime(); $mtime = explode(" ",$mtime); $mtime = $mtime[1] + $mtime[0]; $starttime = $mtime; ;?> <!-- put other code and html in here --> <!-- put this code at the bottom of the page --> <?php $mtime = microtime(); $mtime = explode(" ",$mtime); $mtime = $mtime[1] + $mtime[0]; $endtime = $mtime; $totaltime = ($endtime - $starttime); echo "This page was created in ".$totaltime." seconds"; ;?> |
![]() |
| Thread Tools | |
| Display Modes | |
| |
LinkBacks (?)
LinkBack to this Thread: http://www.discussweb.com/php-programming/2389-determine-execution-time-php.html | |||
| Posted By | For | Type | Date |
| Determine execution time in PHP | Web Hosting | This thread | Refback | 12-21-2007 02:35 PM |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How can we increase the execution time of a php script? | sundarraja | PHP Programming | 0 | 02-01-2008 10:50 PM |
| Determine Leap Year Function | srikumar_l | Database Support | 0 | 12-21-2007 06:04 AM |
| How can we increase the execution time of a php script? | Sabari | PHP Programming | 3 | 09-26-2007 09:23 AM |
| reducing the query execution time | kathir | Database Support | 1 | 07-19-2007 10:55 PM |
| How would you determine the time zone under which a database was operating? | Sabari | Database Support | 2 | 07-19-2007 05:11 AM |