summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-05-25 15:22:29 +1000
committerSavetheinternet <savetheinternet@tinyboard.org>2011-05-25 15:22:29 +1000
commitc9c0e675f3ce586ee207a5f60ab5a21e38ac08ad (patch)
tree54b654de7c8189fecadcc9382ed68dbf67d4cdab /inc/template.php
parent484f022cbb0f811c92b69f82e75d4cf4606cc5e8 (diff)
debug
Diffstat (limited to 'inc/template.php')
-rw-r--r--inc/template.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/inc/template.php b/inc/template.php
index f9d59c2a..49e54f0f 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -176,6 +176,11 @@
}
if(isset($options['body']) && $config['debug']) {
+ if(isset($debug['start'])) {
+ $debug['time'] = '~' . round((microtime(true) - $debug['start']) * 1000, 2) . 'ms';
+ unset($debug['start']);
+
+ }
$options['body'] .= '<h3>Debug</h3><pre style="white-space: pre-wrap;font-size: 10px;">' . print_r($debug, true) . '</pre><hr/>';
}