mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Remove unnecessary calls to getMicroTime()
This commit is contained in:
parent
83d86b8e6c
commit
db87085967
9 changed files with 21 additions and 22 deletions
|
|
@ -305,7 +305,7 @@ if(version_compare(PHP_VERSION, '5.3.0') >= 0)
|
|||
require(_XE_PATH_ . 'config/func.inc.php');
|
||||
|
||||
if(__DEBUG__) {
|
||||
define('__StartTime__', getMicroTime());
|
||||
define('__StartTime__', microtime(true));
|
||||
}
|
||||
|
||||
if(__DEBUG__) {
|
||||
|
|
@ -412,7 +412,7 @@ $GLOBALS['__xe_autoload_file_map'] = array_change_key_case(array(
|
|||
function __xe_autoload($class_name)
|
||||
{
|
||||
if(__DEBUG__) {
|
||||
$time_at = getMicroTime();
|
||||
$time_at = microtime(true);
|
||||
}
|
||||
|
||||
if(isset($GLOBALS['__xe_autoload_file_map'][strtolower($class_name)]))
|
||||
|
|
@ -436,7 +436,7 @@ function __xe_autoload($class_name)
|
|||
}
|
||||
|
||||
if(__DEBUG__) {
|
||||
$GLOBALS['__elapsed_class_load__'] += getMicroTime() - $time_at;
|
||||
$GLOBALS['__elapsed_class_load__'] += microtime(true) - $time_at;
|
||||
}
|
||||
}
|
||||
spl_autoload_register('__xe_autoload');
|
||||
|
|
|
|||
|
|
@ -971,8 +971,7 @@ function flushSlowlog()
|
|||
*/
|
||||
function getMicroTime()
|
||||
{
|
||||
list($time1, $time2) = explode(' ', microtime());
|
||||
return (float) $time1 + (float) $time2;
|
||||
return microtime(true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue