]> git.mxchange.org Git - friendica.git/commitdiff
Added the markdown parser to the time measurement system
authorMichael Vogel <icarus@dabo.de>
Mon, 23 Feb 2015 23:08:17 +0000 (00:08 +0100)
committerMichael Vogel <icarus@dabo.de>
Mon, 23 Feb 2015 23:08:17 +0000 (00:08 +0100)
library/markdown.php

index 8958e8c842ca129d88d7b14f0910195c7130a50b..4d36c1d14f8b140733fbe7c9bb4a4daff536fac1 100644 (file)
@@ -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;
 }
 ?>