From: Andrew Dolgov Date: Sun, 23 Oct 2005 15:48:58 +0000 (+0100) Subject: basic profiling information in backend.php X-Git-Tag: 1.0.7~33 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=406d948993c54b78260f42cc544f893eb6e75793;p=tt-rss.git basic profiling information in backend.php --- diff --git a/backend.php b/backend.php index 495cebe7..77f834eb 100644 --- a/backend.php +++ b/backend.php @@ -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) { @@ -1296,3 +1298,6 @@ db_close($link); ?> + + + diff --git a/functions.php b/functions.php index 888b0e6e..2176b8b7 100644 --- a/functions.php +++ b/functions.php @@ -420,4 +420,9 @@ } + function getmicrotime() { + list($usec, $sec) = explode(" ",microtime()); + return ((float)$usec + (float)$sec); + } + ?>