Code

Added execution time to main.php
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 7 Nov 2006 09:25:47 +0000 (09:25 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 7 Nov 2006 09:25:47 +0000 (09:25 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5030 594d385d-05f5-0310-b6e9-bd551577e9d8

html/main.php

index 93c71f5ac0546fb5323acff28621342ba19174e4..e03e40b75cb59304a537581e8d8ab311df90eee9 100644 (file)
@@ -340,6 +340,8 @@ if (isset ($_SESSION['post_cnt'])){
   echo "<input type=\"hidden\" name=\"session_cnt\" value=\"".$_SESSION['post_cnt']."\">\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']);