Changeset 15922
- Timestamp:
- 2007/09/24 08:51:29 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/html/index.php
r13311 r15922 5 5 * http://www.lockon.co.jp/ 6 6 */ 7 7 $start_time = sfGetMicrotime_float(); 8 8 9 require_once("./require.php"); 9 10 … … 26 27 $objView->assignobj($objPage); 27 28 $objView->display(SITE_FRAME); 29 $end_time=$start_time = sfGetMicrotime_float(); 30 echo 'Script Execution Time: ' . round($end - $start, 3) . ' seconds'; 28 31 //----------------------------------------------------------------------------------------------------------------------------------- 32 // Function to calculate script execution time. 33 function sfGetMicrotime_float () { 34 list ($msec, $sec) = explode(' ', microtime()); 35 $microtime = (float)$msec + (float)$sec; 36 return $microtime; 37 } 38 29 39 ?>
Note: See TracChangeset
for help on using the changeset viewer.