$start_time = array_sum(explode(' ',microtime()));

//your code here
 
$end_time = array_sum ( explode ( ' ' ,microtime()));
echo $end_time - $start_time ;