mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/12687] Use microtime(true)
PHPBB3-12687
This commit is contained in:
parent
6c0fd61b1d
commit
b93269f7bb
1 changed files with 1 additions and 2 deletions
|
@ -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';
|
||||
|
|
Loading…
Add table
Reference in a new issue