[ticket/12687] Use microtime(true)

PHPBB3-12687
This commit is contained in:
Tristan Darricau 2014-06-12 23:35:55 +02:00
parent 6c0fd61b1d
commit b93269f7bb

View file

@ -5050,8 +5050,7 @@ function phpbb_generate_debug_output($db, $config, $auth, $user)
// Output page creation time
if (defined('PHPBB_DISPLAY_LOAD_TIME'))
{
$mtime = explode(' ', microtime());
$totaltime = $mtime[0] + $mtime[1] - $GLOBALS['starttime'];
$totaltime = microtime(true) - $GLOBALS['starttime'];
$debug_info[] = sprintf('Time : %.3fs', $totaltime);
$debug_info[] = $db->sql_num_queries() . ' Queries';