2
0
forked from Wavyzz/dolibarr

Added fucntion dol_microtime_float

This commit is contained in:
Laurent Destailleur
2007-05-18 14:49:48 +00:00
parent dfd0ee4cb9
commit ba69404da8

View File

@@ -2706,4 +2706,14 @@ function ajax_autocompleter($selected='',$htmlname,$url,$indicator='working')
return $script;
}
/**
* \brief Fonction simple identique <20> microtime de PHP 5 mais compatible PHP 4
* \return float Time en millisecondes avec decimal pour microsecondes
*/
function dol_microtime_float()
{
list($usec, $sec) = explode(" ", microtime());
return ((float)$usec + (float)$sec);
}
?>