Changeset 15922


Ignore:
Timestamp:
2007/09/24 08:51:29 (15 years ago)
Author:
kakinaka
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/html/index.php

    r13311 r15922  
    55 * http://www.lockon.co.jp/ 
    66 */ 
    7  
     7$start_time = sfGetMicrotime_float(); 
     8  
    89require_once("./require.php"); 
    910 
     
    2627$objView->assignobj($objPage); 
    2728$objView->display(SITE_FRAME); 
     29$end_time=$start_time = sfGetMicrotime_float(); 
     30echo 'Script Execution Time: ' . round($end - $start, 3) . ' seconds';  
    2831//----------------------------------------------------------------------------------------------------------------------------------- 
     32// Function to calculate script execution time.  
     33function sfGetMicrotime_float () {  
     34    list ($msec, $sec) = explode(' ', microtime());  
     35    $microtime = (float)$msec + (float)$sec;  
     36    return $microtime;  
     37}  
     38 
    2939?> 
Note: See TracChangeset for help on using the changeset viewer.