PHP计时函数
br / //函数:计时函数br / //用法:Echo Runtime(1);br /
//函数:计时函数
//用法:Echo Runtime(1);
//函数:计时函数 //用法:Echo Runtime(1); Function Runtime($mode=0){ Static $s; IF(!$mode){ $s=microtime(); Return; } $e=microtime(); $s=Explode(" ", $s); $e=Explode(" ", $e); Return Sprintf("%.2f ms",($e[1]+$e[0]-$s[1]-$s[0])*1000); }
- 上一篇:PHP通用alert函数
- 下一篇:仿AS3实现PHP 事件机制
精彩图集
精彩文章