Ajout d'un dossier debug et séparation timer
This commit is contained in:
parent
288a87c184
commit
5730ef9be4
16
includes/debug/bench.php
Normal file
16
includes/debug/bench.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
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)');
|
||||
}
|
Loading…
Reference in New Issue
Block a user