ID: 64
Viewed: 5158
Added: Jan 28, 2002
Version:
Snippet uploaded by: snippet
Written By: snippet
Demo: Sorry, no demo
Thank you for your vote. Please wait...
It appears you already voted for this snippet
It appears your vote value was empty
a timer to count down a certain time.
<!---Head--->
<?php
$mtime1 = microtime();
$mtime1 = explode(" ",$mtime1);
$mtime1 = $mtime1[1] + $mtime1[0];
$starttime = $mtime1;
$mtime2 = microtime();
$mtime2 = explode(" ",$mtime2);
$mtime2 = $mtime2[1] + $mtime2[0];
$endtime = $mtime2;
$totaltime = ($endtime - $starttime);
$Time = "<font size="1" face="verdana"><center>$totaltime seconds processing time</center></font><br>";
?>
<!---Body--->
//Now just Place
<?echo $Time ?>
//where you want it to be displayed
//Now if you want this to display as an include,
//copy the above code and paste it in your text
//editor and save the file
//as render.php and add this to it at teh bottom.
echo "<font size="1" face="verdana"><center>$totaltime seconds processing time</center></font><br>";
//just include it like this,
//in your footer or whatever.
<?php include('render.php') ?>
No Comments to show
Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.
Adding your comment. Please wait...
Thanks for adding your comment!. After further review it will be added.
There was a problem adding your comment. Please try again.
Please complete all the fields in the form before sending.