Seems to me like you are miscalculating something in rutime().
Why don't you use something simpler to measure the execution time like this:
$start = microtime(true);
//your stuff here
$end = microtime(true);
$finish = $end - $start;
echo $finish;