Code: Select all
<?
$m_time = explode(" ",microtime());
$m_time = $m_time[0] + $m_time[1];
$starttime = $m_time;
?>Code: Select all
<?
$round = 3;// The number of decimal places to round the micro time to.
$m_time = explode(" ",microtime());
$m_time = $m_time[0] + $m_time[1];
$endtime = $m_time;
$totaltime = ($endtime - $starttime);
echo "-[Script Execution Time: ". round($totaltime,$round) ." Seconds]-";
?>Code: Select all
<?php
echo "<font color="#FFFFFF">-[Script Execution Time: ". round($totaltime,$round) ." Seconds]-</font>";
?>?>