diff options
author | Tristan Darricau <github@nicofuma.fr> | 2014-06-12 23:35:55 +0200 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2014-06-12 23:35:55 +0200 |
commit | b93269f7bbb44e162932123c5b5a59990fdb1d87 (patch) | |
tree | 405e1f39b1d3c24980be405603df4fbfa70e45e7 /phpBB/includes/functions.php | |
parent | 6c0fd61b1df5e3c1245aa4a8d3c7e991de7a2dbf (diff) | |
download | forums-b93269f7bbb44e162932123c5b5a59990fdb1d87.tar forums-b93269f7bbb44e162932123c5b5a59990fdb1d87.tar.gz forums-b93269f7bbb44e162932123c5b5a59990fdb1d87.tar.bz2 forums-b93269f7bbb44e162932123c5b5a59990fdb1d87.tar.xz forums-b93269f7bbb44e162932123c5b5a59990fdb1d87.zip |
[ticket/12687] Use microtime(true)
PHPBB3-12687
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 3634e9a01c..d0445841f4 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -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'; |