1
CodeIgniter에는 항상 활성화 된 벤치마킹 클래스가있어 두 개의 표시된 점 사이의 시간차를 계산할 수 있습니다.코드 이그니 터에서의 벤치마킹
두 점 사이의 시간 차이를 측정하려면, 당신은 단순히 다음 코드를 추가합니다
$this->benchmark->mark('code_start');
// Some code happens here
$this->benchmark->mark('code_end');
echo $this->benchmark->elapsed_time('code_start', 'code_end');
하지만를 elapsed_time
는, 초, 밀리 초 또는 다른 장치를 반송하는 어떤 결과 기능?