From: Michael Vogel Date: Mon, 23 Feb 2015 23:08:17 +0000 (+0100) Subject: Added the markdown parser to the time measurement system X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e0d35949333c4be522ea4df5b302d7e42d03d568;p=friendica.git Added the markdown parser to the time measurement system --- 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; } ?>