diff --git a/phpgwapi/inc/class.egw_framework.inc.php b/phpgwapi/inc/class.egw_framework.inc.php index e506a8e8b4..6e38a5a381 100644 --- a/phpgwapi/inc/class.egw_framework.inc.php +++ b/phpgwapi/inc/class.egw_framework.inc.php @@ -165,9 +165,15 @@ class egw_framework ); if($GLOBALS['egw_info']['user']['preferences']['common']['show_generation_time']) { - $totaltime = sprintf('%4.2lf',perfgetmicrotime() - $GLOBALS['egw_info']['flags']['page_start_time']); + $totaltime = sprintf('%4.2lf',microtime(true) - $GLOBALS['egw_info']['flags']['page_start_time']); - $var['page_generation_time'] = '

'.lang('Page was generated in %1 seconds',$totaltime).'
'; + $var['page_generation_time'] = '

'.lang('Page was generated in %1 seconds',$totaltime); + if ($GLOBALS['egw_info']['flags']['session_restore_time']) + { + $var['page_generation_time'] .= ' '.lang('(session restored in %1 seconds)', + sprintf('%4.2lf',$GLOBALS['egw_info']['flags']['session_restore_time'])); + } + $var['page_generation_time'] .= '
'; } $var['powered_by'] = lang('Powered by').' eGroupWare '.lang('version').' '.$GLOBALS['egw_info']['server']['versions']['phpgwapi']; $var['activate_tooltips'] = ''; diff --git a/phpgwapi/inc/functions.inc.php b/phpgwapi/inc/functions.inc.php index 7773335b26..3519b0a25f 100644 --- a/phpgwapi/inc/functions.inc.php +++ b/phpgwapi/inc/functions.inc.php @@ -89,6 +89,7 @@ if ($GLOBALS['egw_info']['server']['sessions_type'] == 'php4-restore' && $_REQUE $GLOBALS['egw']->wakeup2(); // adapt the restored egw-object/enviroment to this request (eg. changed current app) //printf("

egw-enviroment restored in %d ms

\n",1000*(perfgetmicrotime()-$GLOBALS['egw_info']['flags']['page_start_time'])); + $GLOBALS['egw_info']['flags']['session_restore_time'] = microtime(true) - $GLOBALS['egw_info']['flags']['page_start_time']; if (is_object($GLOBALS['egw']->translation)) return; // exit this file, as the rest of the file creates a new egw-object and -enviroment } // egw object could NOT be restored from the session, create a new one diff --git a/phpgwapi/templates/idots/class.idots_framework.inc.php b/phpgwapi/templates/idots/class.idots_framework.inc.php index 0e1570dd08..c873319a42 100644 --- a/phpgwapi/templates/idots/class.idots_framework.inc.php +++ b/phpgwapi/templates/idots/class.idots_framework.inc.php @@ -680,12 +680,6 @@ class idots_framework extends egw_framework { $content .= "\n\n"; // close body and html tag, eg. for popups } - if (DEBUG_TIMER) - { - $totaltime = sprintf('%4.2lf',microtime(true) - $GLOBALS['egw_info']['flags']['page_start_time']); - - $content .= lang('Page was generated in %1 seconds',$totaltime); - } return $content; } }