Ignore:
Timestamp:
2010/04/25 13:28:55 (14 years ago)
Author:
Seasoft
Message:

#709(管理モード時の処理時間の表示をミリ秒単位に)実装

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/class/SC_View.php

    r18596 r18625  
    6868 
    6969        if(ADMIN_MODE == '1') { 
    70             $this->time_start = time(); 
     70            $this->time_start = SC_Utils_Ex::sfMicrotimeFloat(); 
    7171        } 
    7272 
     
    135135        $this->_smarty->display($template); 
    136136        if(ADMIN_MODE == '1') { 
    137             $time_end = time(); 
     137            $time_end = SC_Utils_Ex::sfMicrotimeFloat(); 
    138138            $time = $time_end - $this->time_start; 
    139             print("処理時間:" . $time . "秒"); 
     139            echo '処理時間: ' . round($time, 3) . 秒; 
    140140        } 
    141141    } 
Note: See TracChangeset for help on using the changeset viewer.