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

By | 2012 年 9 月 12 日
$t1 = microtime(true);

//php script here

$t2 = microtime(true);

(($t2-$t1)*1000).'ms';

发表回复

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理