]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/action.php
Create and use MessageList widget
[quix0rs-gnu-social.git] / lib / action.php
index 8bef5ca230cdce7a0ed40f905ed7708e8a3ddb48..26ebd20932247cb870d1c6f37326406c29a26812 100644 (file)
@@ -111,6 +111,19 @@ class Action extends HTMLOutputter // lawsuit
         }
     }
 
+    function endHTML()
+    {
+        global $_startTime;
+
+        if (isset($_startTime)) {
+            $endTime = microtime(true);
+            $diff = round(($endTime - $_startTime) * 1000);
+            $this->raw("<!-- ${diff}ms -->");
+        }
+
+        return parent::endHTML();
+    }
+
     /**
      * Show head, a template method.
      *