$GLOBALS['start'] = microtime(true); $GLOBALS['end'] = microtime(true); $runtime = $GLOBALS['end']-$GLOBALS['start']; echo number_format($runtime, 10, '.', '')." seconds";
转载请注明:MitNick » PHP统计一段程序的运行时间
$GLOBALS['start'] = microtime(true); $GLOBALS['end'] = microtime(true); $runtime = $GLOBALS['end']-$GLOBALS['start']; echo number_format($runtime, 10, '.', '')." seconds";
转载请注明:MitNick » PHP统计一段程序的运行时间