forked from Wavyzz/dolibarr
Merge pull request #3588 from GPCsolutions/microtime
[Qual] Replaced deprecated dol_microtime_float()
This commit is contained in:
@@ -511,7 +511,7 @@ class Menubase
|
|||||||
$sql.= " ORDER BY m.position, m.rowid";
|
$sql.= " ORDER BY m.position, m.rowid";
|
||||||
//print $sql;
|
//print $sql;
|
||||||
|
|
||||||
//$tmp1=dol_microtime_float();
|
//$tmp1=microtime(true);
|
||||||
//print '>>> 1 0<br>';
|
//print '>>> 1 0<br>';
|
||||||
dol_syslog(get_class($this)."::menuLoad mymainmenu=".$mymainmenu." myleftmenu=".$myleftmenu." type_user=".$type_user." menu_handler=".$menu_handler." tabMenu size=".count($tabMenu)."", LOG_DEBUG);
|
dol_syslog(get_class($this)."::menuLoad mymainmenu=".$mymainmenu." myleftmenu=".$myleftmenu." type_user=".$type_user." menu_handler=".$menu_handler." tabMenu size=".count($tabMenu)."", LOG_DEBUG);
|
||||||
$resql = $this->db->query($sql);
|
$resql = $this->db->query($sql);
|
||||||
@@ -575,7 +575,7 @@ class Menubase
|
|||||||
$title = $langs->trans($menu['titre']);
|
$title = $langs->trans($menu['titre']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//$tmp4=dol_microtime_float();
|
//$tmp4=microtime(true);
|
||||||
//print '>>> 3 '.($tmp4 - $tmp3).'<br>';
|
//print '>>> 3 '.($tmp4 - $tmp3).'<br>';
|
||||||
|
|
||||||
// We complete tabMenu
|
// We complete tabMenu
|
||||||
|
|||||||
@@ -4938,7 +4938,7 @@ function printCommonFooter($zone='private')
|
|||||||
print 'MAIN_OPTIMIZE_SPEED='.(isset($conf->global->MAIN_OPTIMIZE_SPEED)?$conf->global->MAIN_OPTIMIZE_SPEED:'off');
|
print 'MAIN_OPTIMIZE_SPEED='.(isset($conf->global->MAIN_OPTIMIZE_SPEED)?$conf->global->MAIN_OPTIMIZE_SPEED:'off');
|
||||||
if ($micro_start_time)
|
if ($micro_start_time)
|
||||||
{
|
{
|
||||||
$micro_end_time=dol_microtime_float();
|
$micro_end_time = microtime(true);
|
||||||
print ' - Build time: '.ceil(1000*($micro_end_time-$micro_start_time)).' ms';
|
print ' - Build time: '.ceil(1000*($micro_end_time-$micro_start_time)).' ms';
|
||||||
}
|
}
|
||||||
if (function_exists("memory_get_usage"))
|
if (function_exists("memory_get_usage"))
|
||||||
|
|||||||
@@ -35,7 +35,6 @@
|
|||||||
//@ini_set('memory_limit', '64M'); // This may be useless if memory is hard limited by your PHP
|
//@ini_set('memory_limit', '64M'); // This may be useless if memory is hard limited by your PHP
|
||||||
|
|
||||||
// For optional tuning. Enabled if environment variable MAIN_SHOW_TUNING_INFO is defined.
|
// For optional tuning. Enabled if environment variable MAIN_SHOW_TUNING_INFO is defined.
|
||||||
// A call first. Is the equivalent function dol_microtime_float not yet loaded.
|
|
||||||
$micro_start_time=0;
|
$micro_start_time=0;
|
||||||
if (! empty($_SERVER['MAIN_SHOW_TUNING_INFO']))
|
if (! empty($_SERVER['MAIN_SHOW_TUNING_INFO']))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user