Hello everybody, I pretty much still learning PHP and can't get this output from the PHP page load script I found to be more of a format of (0.23 Seconds) but the code is makeing it so it looks like this (0.00000023) is there a way to change it? Code below.
Website Script at bottom:
<?php
// Insert at the very top of your page
$time = microtime();
$time = explode(" ", $time);
$time = $time[1] + $time[0];
$start = $time;
?>
<?php
// Place at the very bottom of your page
$time = microtime();
$time = explode(" ", $time);
$time = $time[1] + $time[0];
$finish = $time;
$totaltime = ($finish - $start);
printf ("Page took %f seconds to load.", $totaltime);
// The above line can be changed but remember to keep %f
?>