php 실행 시간 출력

php 실행 시간 출력

더시민 0 439 0

$script_starttime = get_microtime();

    echo get_microtime() - $script_starttime."<br />";

......

 

 

    echo get_microtime() - $script_starttime."<br />";

 


function get_microtime()
{
    list($usec, $sec) = explode(" ",microtime());
    return ((float)$usec + (float)$sec);
}

0 Comments
제목
Category
Facebook Twitter GooglePlus KakaoStory KakaoTalk NaverBand