]> git.wh0rd.org Git - tt-rss.git/commitdiff
basic profiling information in backend.php
authorAndrew Dolgov <fox@bah.spb.su>
Sun, 23 Oct 2005 15:48:58 +0000 (16:48 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sun, 23 Oct 2005 15:48:58 +0000 (16:48 +0100)
backend.php
functions.php

index 495cebe722ff0a9f66ec744804e4b54c39b2ad1c..77f834eb9c4b0c5eef8c28aba15b25edbaf7433b 100644 (file)
@@ -10,6 +10,8 @@
        require_once "functions.php";
        require_once "magpierss/rss_fetch.inc";
 
+       $script_started = getmicrotime();
+
        $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); 
 
        if (!$link) {
 
        db_close($link);
 ?>
+
+<!-- <?= sprintf("Backend execution time: %.4f seconds", getmicrotime() - $script_started) ?> -->
+
index 888b0e6e8a9632c83c5832acfc2031101097e2f8..2176b8b7731e8243c9debc6e81f7c89f7077fb3c 100644 (file)
 
        }
 
+       function getmicrotime() {
+               list($usec, $sec) = explode(" ",microtime());
+               return ((float)$usec + (float)$sec);
+       }
+
 ?>