取消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

@@ -33,7 +33,7 @@ class Sae
} else {
$current_uri = "cmd:" . implode(' ', $_SERVER['argv']);
}
$runtime = microtime_float() - START_TIME;
$runtime = number_format(microtime(true), 8, '.', '') - START_TIME;
$reqs = number_format(1 / $runtime, 2);
$time_str = " [运行时间:{$runtime}s] [吞吐率:{$reqs}req/s]";
$memory_use = number_format((memory_get_usage() - START_MEM) / 1024, 2);
@@ -45,7 +45,7 @@ class Sae
foreach ($val as $msg) {
if (!is_string($msg)) {
$msg = var_export($msg, true);
}
}
$info .= '[ ' . $type . ' ] ' . $msg . "\r\n";
}
}