From 82577738072a833aa0ec8ed6e798d684d1abea1d Mon Sep 17 00:00:00 2001 From: Michael Foster Date: Thu, 29 Aug 2013 08:30:21 +1000 Subject: $config['debug']: Show time initializing Tinyboard (before $debug was created) --- inc/template.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'inc/template.php') diff --git a/inc/template.php b/inc/template.php index ef688944..6f85e78b 100644 --- a/inc/template.php +++ b/inc/template.php @@ -47,7 +47,9 @@ function Element($templateFile, array $options) { if (isset($options['body']) && $config['debug']) { if (isset($debug['start'])) { $debug['time'] = '~' . round((microtime(true) - $debug['start']) * 1000, 2) . 'ms'; + $debug['time (initialization)'] = '~' . round(($debug['start_debug'] - $debug['start']) * 1000, 2) . 'ms'; unset($debug['start']); + unset($debug['start_debug']); } $debug['included'] = get_included_files(); $debug['memory'] = round(memory_get_usage(true) / (1024 * 1024), 2) . ' MiB'; -- cgit v1.3