沈阳手机网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

沈阳手机网手机维修培训中心Apple手机报价沈阳二手笔记本报价

二手手机回收

沈阳手机靓号DJ音乐 最好听的DJ
查看: 1286|回复: 0

显示程序执行时间php函数代码

[复制链接]
发表于 2014-3-18 09:24:37 | 显示全部楼层 |阅读模式

这篇文章介绍了显示程序执行时间php函数代码,有需要的朋友可以参考一下
复制代码 代码如下:
  1. /**
  2.    * 程序执行时间
  3.   *
  4.    * @return  int 单位ms
  5.    */
  6.   function execute_time() {
  7.       $stime = explode ( ' ', SYS_START_TIME );
  8.       $etime = explode ( ' ', microtime () );
  9.       return number_format ( ($etime [1] + $etime [0] - $stime [1] - $stime [0]), 6 );
  10.   }

  11. <p> </p>
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|沈阳手机网 ( 辽ICP备11004416号 )

GMT+8, 2024-5-17 10:07 , Processed in 0.027900 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表