Is there a way to put the number of seconds a script takes to execute (or "page load time") in the middle of the page?
<p>I want to put the number of seconds a search script takes to search in PHP. But, I don't want to put that number at the bottom of the page. I put this at the top of the PHP file:</p>

<pre><code>$time_start = microtime(true);
</code></pre>

<p>And then I put this where I am echoing out the number: </p>

<pre><code>$time_end = microtime(true);
echo number_format($time_end - $time_start, 5);
</code></pre>

<p>The problem is that this doesn't count the whole script as there's still a lot of other code under that. Is there a way to determine how long it takes to execute but echo it in another place on the page rather than the bottom?</p>
