title: How do I measure a time interval in C?
body: <p>I would like to measure time in C, and I am having a tough time figuring it out, all I want is something like this:</p>
  
  <ul>
  <li>start a timer</li>
  <li>run a method</li>
  <li>stop the timer</li>
  <li>report the time taken (at least to micro accuracy)</li>
  </ul>
  
  <p>Any help would be appreciated.</p>
  
  <p>(I am compiling in windows using mingw)</p>