2009-07-21 14:43:35 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2010-02-10 17:27:03 +00:00
|
|
|
* Fonction globale récupérant le microtime de la machine en format float.
|
|
|
|
* @return float Valeur courante du microtime() de la machine en format décimal
|
2009-07-21 14:43:35 +00:00
|
|
|
*/
|
|
|
|
function getmicrotime(){
|
|
|
|
list($usec, $sec) = explode (' ', microtime());
|
|
|
|
return ( (float)$sec + (float)$usec );
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( LOG_BENCH != 'NONE'){
|
|
|
|
require_once ('Benchmark/Timer.php');
|
|
|
|
$timer = new Benchmark_Timer();
|
|
|
|
$timer->start();
|
|
|
|
$timer->setMarker('Debut du script (prepend.php)');
|
|
|
|
}
|