$start_time = microtime(TRUE);
// do anything ... mysqli
$stop_time = microtime(TRUE);
$duration = $stop_time - $start_time;
var_dump($duration);
$start_time = microtime(TRUE);
// do anything ... mysqli
$stop_time = microtime(TRUE);
$duration = $stop_time - $start_time;
var_dump($duration);