PHP 수행시간 측정

Jmnote (토론 | 기여)님의 2012년 2월 26일 (일) 21:24 판 (새 문서: *PHP 수행시간 측정 *PHP 속도 측정 *PHP 속도 비교 ==수행시간 측정== <source lang='php'> <?php function get_time() { $a = explode(' ', microtime()); return (doubl...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
  • PHP 수행시간 측정
  • PHP 속도 측정
  • PHP 속도 비교

1 수행시간 측정

<?php
function get_time() {
	$a = explode(' ', microtime());
	return (double)$a[0]+$a[1];
}

$start = get_time();
/*
수행할 내용
*/
$end = get_time();
echo '<br/>'.number_format($end - $start, 2). "초 걸림";
?>

2 참고자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}