<?php
function microtime_float()
{
    list($usec, $sec) = explode(" ", microtime());
    return ((float)$usec + (float)$sec);
}

$time_begin = microtime_float();

my_function ();

$time_end = microtime_float();
$time = ($time_end - $time_begin) * 1000;
echo "執行這個 function 花了 ". $time ." ms ";

?>

undefined
Laravel 5 for beginner 新手道場:優雅運用框架快速開發 PHP 網站

作者: 洪可郡(KeJyun)  
出版社:博碩  
出版日期:2017/12/29
語言:繁體中文
定價:580元

arrow
arrow
    文章標籤
    php
    全站熱搜

    helloworld 發表在 痞客邦 留言(0) 人氣()