From e0d35949333c4be522ea4df5b302d7e42d03d568 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Tue, 24 Feb 2015 00:08:17 +0100 Subject: [PATCH] Added the markdown parser to the time measurement system --- library/markdown.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/library/markdown.php b/library/markdown.php index 8958e8c842..4d36c1d14f 100644 --- a/library/markdown.php +++ b/library/markdown.php @@ -9,9 +9,16 @@ require_once("library/php-markdown/Michelf/MarkdownExtra.inc.php"); use \Michelf\MarkdownExtra; function Markdown($text) { + + $a = get_app(); + + $stamp1 = microtime(true); + # Read file and pass content through the Markdown parser $html = MarkdownExtra::defaultTransform($text); + $a->save_timestamp($stamp1, "rendering"); + return $html; } ?> -- 2.39.5