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

非常简单,记录一下:

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

Posted

in

by

Tags:

Comments

Leave a Reply

%d bloggers like this: