mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +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
|
// Output page creation time
|
||||||
if (defined('PHPBB_DISPLAY_LOAD_TIME'))
|
if (defined('PHPBB_DISPLAY_LOAD_TIME'))
|
||||||
{
|
{
|
||||||
$mtime = explode(' ', microtime());
|
$totaltime = microtime(true) - $GLOBALS['starttime'];
|
||||||
$totaltime = $mtime[0] + $mtime[1] - $GLOBALS['starttime'];
|
|
||||||
|
|
||||||
$debug_info[] = sprintf('Time : %.3fs', $totaltime);
|
$debug_info[] = sprintf('Time : %.3fs', $totaltime);
|
||||||
$debug_info[] = $db->sql_num_queries() . ' Queries';
|
$debug_info[] = $db->sql_num_queries() . ' Queries';
|
||||||
|
|
Loading…
Add table
Reference in a new issue