1. 首页
  2. 编程语言
  3. 其他
  4. php 使用Timer 类计算页面运行时间.rar

php 使用Timer 类计算页面运行时间.rar

上传者: 2019-09-08 19:35:55上传 RAR文件 1.54KB 热度 22次
php计算页面运行时间,本程序中使用了PHP中的Timer类,Timerclass,计算页面运行时间,可按不同key计算不同的运行时间。  函数参数说明:  publicstart记录开始时间  publicend记录结束时间  publicgetTime计算运行时间  pulbicprintTime输出运行时间  privategetKey获取key  privategetMicrotime获取microtime  使用时,请参考demo.php的用法。
下载地址
用户评论