tore-
Sr. Member
   
Posts: 291

I love YaBB SE!
|
 |
This page was generated in.....
« on: January 18, 2002, 03:36:48 PM » |
|
Ive got a php script that i would think would be great, ist like the topic says, a generated in X sec script.
Dont know if any of the admins wanna ad it, since its php and cant be added in the template file.
Anyway, heres the file:
<?php $mtime = microtime(); $mtime = explode(" ",$mtime); $mtime = $mtime[1] + $mtime[0]; $starttime = $mtime;
// Here is the page or something :)
$mtime = microtime(); $mtime = explode(" ",$mtime); $mtime = $mtime[1] + $mtime[0]; $endtime = $mtime; $totaltime = ($endtime - $starttime); printf("<center>This page was generated in %f sec.</center>", $totaltime); ?> Edit by John R - Just to keep things in the proper format. Examples of code should be placed inside the code tags.
|
|
« Last Edit: April 28, 2002, 05:16:43 PM by John R »
|
Logged
|
Star wars rules!
|
|
|
|
|
|
|
|
|
|
|
|
|
|