// change page time load calculation

This commit is contained in:
tDidierjean
2012-04-11 11:53:44 +00:00
parent 462385884d
commit 465313a5cd
3 changed files with 9 additions and 7 deletions
+3 -1
View File
@@ -25,7 +25,9 @@
* International Registered Trademark & Property of PrestaShop SA
*/
$timer_start = microtime(true);
define('_PS_ADMIN_DIR_', getcwd());
require(dirname(__FILE__).'/../config/config.inc.php');
require(dirname(__FILE__).'/functions.php');
@@ -38,4 +40,4 @@ if (!isset($_REQUEST['controller']) && isset($_REQUEST['tab']))
$_REQUEST['controller'] = strtolower($_REQUEST['tab']);
// Prepare and trigger admin dispatcher
Dispatcher::getInstance()->dispatch();
Dispatcher::getInstance()->dispatch();
+1 -1
View File
@@ -31,7 +31,7 @@
<div id="footer">
<div class="footerLeft">
<a href="http://www.prestashop.com/" target="_blank">PrestaShop&trade; {$ps_version}</a><br />
<span>{l s='Load time: '}{$end_time}s</span>
<span>{l s='Load time: '}{number_format(microtime(true) - $timer_start, 3, '.', '')}s</span>
</div>
<div class="footerRight">
{if $iso_is_fr}