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'] .= '

Debug

' . print_r($debug, true) . '

'; }