title: How to get the run time for a PHP script
body: <p>So I have been developing a compression engine in PHP (just for started I wanted to use a language I'm familiar with) and wanted to compare times it takes to run scripts.</p>
  
  <p>And by scripts I mean how long it takes to do example:</p>
  
  <pre><code>echo "This is some text that I want to know how long it took to display it";
  </code></pre>
  
  <p>I have looked at some Stack questions and all I could find was a <code>microtime</code> function which got a number like <code>6.9141387939453E-6;</code> - Not sure what that is.</p>
  
  <p>I did manage to get a function to work <code>getrusage</code> - But that was on another server that I don't have anymore. I'm running on a Windows version of XAMPP with PHP 5 - So I don't have access to <code>getrusage</code>.</p>
  
  <p>So all I want to know is how to get the amount of time (in seconds) it took for the PHP script to run.</p>