From f99e09f5887680c4e617c6c8ac3c779519d1ec8e Mon Sep 17 00:00:00 2001 From: "Uwe.Tews" Date: Thu, 24 Jun 2010 14:43:04 +0000 Subject: [PATCH] - replace internal get_time() calls with standard PHP5 microtime(true) calls in Smarty_Internal_Utility --- change_log.txt | 4 ++++ libs/sysplugins/smarty_internal_utility.php | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/change_log.txt b/change_log.txt index 15707d3b..5dbd1dc9 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,3 +1,7 @@ +24/06/2010 +- replace internal get_time() calls with standard PHP5 microtime(true) calls in Smarty_Internal_Utility + + 22/06/2010 - allow spaces between typecast and value in template syntax - bugfix get correct count of traversables in {foreach} tag diff --git a/libs/sysplugins/smarty_internal_utility.php b/libs/sysplugins/smarty_internal_utility.php index 61528c50..83e62c60 100644 --- a/libs/sysplugins/smarty_internal_utility.php +++ b/libs/sysplugins/smarty_internal_utility.php @@ -73,12 +73,12 @@ class Smarty_Internal_Utility { } echo '
', $_dir, '---', $_template_file; flush(); - $_start_time = $this->_get_time(); + $_start_time = microtime(true); try { $_tpl = $this->smarty->createTemplate($_template_file); if ($_tpl->mustCompile()) { $_tpl->compileTemplateSource(); - echo ' compiled in ', $this->_get_time() - $_start_time, ' seconds'; + echo ' compiled in ', microtime(true) - $_start_time, ' seconds'; flush(); } else { echo ' is up to date'; @@ -131,12 +131,12 @@ class Smarty_Internal_Utility { } echo '
', $_dir, '---', $_config_file; flush(); - $_start_time = $this->_get_time(); + $_start_time = microtime(true); try { $_config = new Smarty_Internal_Config($_config_file, $this->smarty); if ($_config->mustCompile()) { $_config->compileConfigSource(); - echo ' compiled in ', $this->_get_time() - $_start_time, ' seconds'; + echo ' compiled in ', microtime(true) - $_start_time, ' seconds'; flush(); } else { echo ' is up to date';