From: hickert Date: Tue, 7 Nov 2006 09:25:47 +0000 (+0000) Subject: Added execution time to main.php X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=896299fe4b75eb664420189608b4062e24227db5;p=gosa.git Added execution time to main.php git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5030 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/html/main.php b/html/main.php index 93c71f5ac..e03e40b75 100644 --- a/html/main.php +++ b/html/main.php @@ -340,6 +340,8 @@ if (isset ($_SESSION['post_cnt'])){ echo "\n"; } +$start = microtime(); + /* Load plugin */ if (is_file("$plugin_dir/main.inc")){ require_once ("$plugin_dir/main.inc"); @@ -366,7 +368,7 @@ if (is_file("$plugin_dir/main.inc")){ /* Print_out last ErrorMessage repeated string. */ print_red(NULL); -$smarty->assign("contents", $display); +$smarty->assign("contents", $display.get_MicroTimeDiff($start,microtime())); if (isset($_SESSION['errors'])){ $smarty->assign("errors", $_SESSION['errors']);