mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 03:14:27 +02:00
- replace internal get_time() calls with standard PHP5 microtime(true) calls in Smarty_Internal_Utility
This commit is contained in:
@@ -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
|
||||
|
@@ -73,12 +73,12 @@ class Smarty_Internal_Utility {
|
||||
}
|
||||
echo '<br>', $_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 '<br>', $_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';
|
||||
|
Reference in New Issue
Block a user