取消microtime_float函数 取消MODE_PATH IS_API常量

This commit is contained in:
thinkphp
2016-06-29 20:39:38 +08:00
parent 207a77420e
commit 1a91aaa882
7 changed files with 26 additions and 38 deletions

View File

@@ -15,7 +15,6 @@ use think\Cache;
use think\Config;
use think\Db;
use think\Debug;
use think\Request;
/**
* 页面Trace调试
@@ -44,7 +43,7 @@ class Html
{
// 获取基本信息
$runtime = microtime_float() - START_TIME;
$runtime = number_format(microtime(true), 8, '.', '') - START_TIME;
$reqs = number_format(1 / $runtime, 2);
$mem = number_format((memory_get_usage() - START_MEM) / 1024, 2);