计算php运行时间(毫秒数)

非常简单,记录一下:

$t1 = microtime(true);
//php script here
$t2 = microtime(true);
echo (($t2-$t1)*1000).'ms';

Leave a Reply

Your email address will not be published. Required fields are marked *