$t = new executeTime;
phpinfo();
class executeTime{
private $microtime;
public function __construct(){
$this->microtime = microtime(true);
}
public function getNow(){
$this->__dectruct();
}
public function __destruct(){
if (empty($_SERVER['REQUEST_TIME_FLOAT']))
echo '
鏈鎵ц鏃堕棿锛?, microtime(TRUE) - $this->microtime, '绉?lt;/div>';
else
echo '
鏈鎵ц鏃堕棿锛?, microtime(TRUE) - $_SERVER['REQUEST_TIME_FLOAT'], '绉?lt;/div>';
}
}
http://www.bkjia.com/PHPjc/327705.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/327705.htmlTechArticle濡備笅鎵€绀猴細 澶嶅埗浠g爜 浠g爜濡備笅: ?php $t = new executeTime; phpinfo(); class executeTime{ private $microtime; public function __construct(){ $this-microtime = microtime(tr...