PHP가 동작한 시간을 알아오기 위한 함수 > PHP

STUDY ROOM

PHP

PHP가 동작한 시간을 알아오기 위한 함수

페이지 정보

작성자 JMStudy 작성일07-02-22 11:16 조회9,597회 댓글0건

본문


function php_timer(){
static $arr_timer;
if(!isset($arr_timer)){
$arr_timer = explode(" ", microtime());
}else{
$arr_timer2 = explode(" ", microtime());
$result = ($arr_timer2[1] - $arr_timer[1]) + ($arr_timer2[0] - $arr_timer[0]);
$result = sprintf("%.4f",$result);
return $result;
}
return false;
}
댓글목록

등록된 댓글이 없습니다.