]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/debug/class_DebugConsoleOutput.php
Several debug things (e.g. for timing) added
[core.git] / inc / classes / main / debug / class_DebugConsoleOutput.php
index bf6e0980063726a51221acc283bc0f3d45ce8b0c..28d31163251b3d61286d2bb3a9f8f5c591d01c66 100644 (file)
@@ -55,8 +55,14 @@ class DebugConsoleOutput extends BaseFrameworkSystem implements Debugger, Output
                // Prepare the output
                $output = trim(html_entity_decode(strip_tags(stripslashes($output))));
 
+               // Are debug times enabled?
+               if ($this->getConfigInstance()->getConfigEntry('debug_output_timings') == 'Y') {
+                       // Output it first
+                       print($this->getPrintableExecutionTime());
+               } // END - if
+
                // And print it out...
-               printf("%s\n", $output);
+               printf('%s%s', $output, chr(10));
        }
 
        /**