]> git.mxchange.org Git - friendica.git/blobdiff - library/markdown.php
Merge pull request #2113 from annando/1511-manage-notifications
[friendica.git] / library / markdown.php
index 8958e8c842ca129d88d7b14f0910195c7130a50b..a8152c2ab61929b8e6b75fb45adf14ee0839991b 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, "parser");
+
        return $html;
 }
 ?>