PHP测试程序运行时间的类
类很简单,主要是运用了几个函数数组列表函数list(),字符串分割成数组函数explode(),获取时间戳和微秒数microtime(),代码如下: 实现代码如下: starTime=$this->getMicTime(); } public function stop(){//获取结束时间
类很简单,主要是运用了几个函数数组列表函数list(),字符串分割成数组函数explode(),获取时间戳和微秒数microtime(),代码如下: 实现代码如下: starTime=$this->getMicTime(); } public function stop(){//获取结束时间
实现代码如下: