<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Code The World — Page load time]]></title>
	<link rel="self" href="https://codetheworld.com/extern.php?action=feed&amp;tid=9&amp;type=atom" />
	<updated>2008-06-15T01:07:54Z</updated>
	<generator>PunBB</generator>
	<id>https://codetheworld.com/viewtopic.php?id=9</id>
		<entry>
			<title type="html"><![CDATA[Page load time]]></title>
			<link rel="alternate" href="https://codetheworld.com/viewtopic.php?pid=9#p9" />
			<content type="html"><![CDATA[<p>Description<br />Outputs the time in seconds that it takes for a PHP page to load.</p><p>The code<br /></p><div class="codebox"><pre><code>&lt;?php

// Insert this block of code at the very top of your page:

$time = microtime();
$time = explode(&quot; &quot;, $time);
$time = $time[1] + $time[0];
$start = $time;

// Place this part at the very end of your page

$time = microtime();
$time = explode(&quot; &quot;, $time);
$time = $time[1] + $time[0];
$finish = $time;
$totaltime = ($finish - $start);
printf (&quot;This page took %f seconds to load.&quot;, $totaltime);

?&gt;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Casper]]></name>
				<uri>https://codetheworld.com/profile.php?id=5</uri>
			</author>
			<updated>2008-06-15T01:07:54Z</updated>
			<id>https://codetheworld.com/viewtopic.php?pid=9#p9</id>
		</entry>
</feed>
