aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db/driver/mssqlnative.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-06-22 23:09:21 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-06-22 23:09:21 +0200
commitde04304e94c428afd6dcb9f42b215ebbb6cc14d2 (patch)
treea0e18e6473a437dc6a779c40936077eb0c1efbfb /phpBB/phpbb/db/driver/mssqlnative.php
parentd3b3e9265c23be4f0ad185820e8fb195209c2abc (diff)
parentf850d5fa90584bb73ef1a77fd21f825e1d0794ed (diff)
downloadforums-de04304e94c428afd6dcb9f42b215ebbb6cc14d2.tar
forums-de04304e94c428afd6dcb9f42b215ebbb6cc14d2.tar.gz
forums-de04304e94c428afd6dcb9f42b215ebbb6cc14d2.tar.bz2
forums-de04304e94c428afd6dcb9f42b215ebbb6cc14d2.tar.xz
forums-de04304e94c428afd6dcb9f42b215ebbb6cc14d2.zip
Merge pull request #2591 from rxu/ticket/12704
[ticket/12704] Improve the load time information in the footer when enabled * rxu/ticket/12704: [ticket/12704] Improve the load time information in the footer when enabled
Diffstat (limited to 'phpBB/phpbb/db/driver/mssqlnative.php')
-rw-r--r--phpBB/phpbb/db/driver/mssqlnative.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/driver/mssqlnative.php b/phpBB/phpbb/db/driver/mssqlnative.php
index a7f93c8feb..46a9b3a477 100644
--- a/phpBB/phpbb/db/driver/mssqlnative.php
+++ b/phpBB/phpbb/db/driver/mssqlnative.php
@@ -127,6 +127,10 @@ class mssqlnative extends \phpbb\db\driver\mssql_base
{
$this->sql_report('start', $query);
}
+ else if (defined('PHPBB_DISPLAY_LOAD_TIME'))
+ {
+ $this->curtime = microtime(true);
+ }
$this->last_query_text = $query;
$this->query_result = ($cache && $cache_ttl) ? $cache->sql_load($query) : false;
@@ -145,6 +149,10 @@ class mssqlnative extends \phpbb\db\driver\mssql_base
{
$this->sql_report('stop', $query);
}
+ else if (defined('PHPBB_DISPLAY_LOAD_TIME'))
+ {
+ $this->sql_time += microtime(true) - $this->curtime;
+ }
if ($cache && $cache_ttl)
{