페이지 실행 시간 소모


  
  
  
  
  1. function microtime_float() 
  2. { 
  3.     // microtime   
  4.     $_mtime = explode(" ", microtime()); 
  5.     //  
  6.     return $_mtime[1] + $_mtime[0]; 
  7.     /* 
  8.      *   
  9.      list($usec, $sec) = explode(" ", microtime()); 
  10.      return $usec + $sec; 
  11.      *  
  12.      * */ 
  13.  
  14. } 
  15. //  
  16. $time_start = microtime_float(); 
  17. //   
  18. usleep(100); 
  19.   
  20. //  
  21. $time_end = microtime_float(); 
  22.   
  23. // = -  
  24. $time = $time_end - $time_start; 
  25.   
  26. echo $time ; 

좋은 웹페이지 즐겨찾기