diff options
author | Jannik Schönartz | 2018-02-06 13:45:54 +0100 |
---|---|---|
committer | Jannik Schönartz | 2018-02-06 13:45:54 +0100 |
commit | 3d801dcde21c8166e3281a180ef21ff05b175fd6 (patch) | |
tree | f8508e11bc6df5a27f0417ad8098c4ed013a691c /index.php | |
parent | [usb-lock-off] Reworked config chooser. Switched from the dropdown config sel... (diff) | |
parent | [statistics_reporting] Translation for 'settings' (diff) | |
download | slx-admin-3d801dcde21c8166e3281a180ef21ff05b175fd6.tar.gz slx-admin-3d801dcde21c8166e3281a180ef21ff05b175fd6.tar.xz slx-admin-3d801dcde21c8166e3281a180ef21ff05b175fd6.zip |
Merge branch 'origin/master' into usb-lock-off
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -12,6 +12,8 @@ if (CONFIG_SQL_PASS === '%MYSQL_OPENSLX_PASS%') { require_once('inc/user.inc.php'); +$global_start = microtime(true); + /** * Page class which all module's pages must be extending from */ @@ -213,6 +215,13 @@ if (defined('CONFIG_DEBUG') && CONFIG_DEBUG) { if (defined('CONFIG_FOOTER')) { Render::addTemplate('footer', array('text' => CONFIG_FOOTER), 'main'); } +if (CONFIG_DEBUG) { + $duration = microtime(true) - $global_start; + Render::addTemplate('footer', array('text' => + round($duration, 3) . 's, ' + . Database::getQueryCount() . ' queries, ' + . round(Database::getQueryTime(), 3) . 's query time total'), 'main'); +} Render::addTemplate('tm-callback-trigger', array(), 'main'); |