title: How to time a function in milliseconds without boost::timer
body: <p>I am using boost 1.46 which does not include boost::timer, What other way can I time my functions.</p>
  
  <p>I am currently doing this:</p>
  
  <pre><code>time_t now = time(0);
  &lt;some stuff&gt;
  time_t after = time(0);
  
  cout &lt;&lt; after - now &lt;&lt; endl; 
  </code></pre>
  
  <p>but it just gives the answer in seconds, so if the function takes &lt; 1s it displays 0.</p>
  
  <p>Thanks</p>