title: GetLocalTime() API time resolution
body: <p>I need to find out time taken by a function in my application. Application is a MS VIsual Studio 2005 solution, all C code. </p>
  
  <p>I used thw windows API GetLocalTime(SYSTEMTIME *) to get the current system time before and after the function call which I want to measure time of.
  But this has shortcoming that it lowest resolution is only 1msec. Nothing below that. So I cannot get any time granularity in micro seconds. </p>
  
  <p>I know that time() which gives the time elapsed since the epoch time, also has resolution of 1msec (No microseconds) </p>
  
  <p>1.) Is there any other Windows API which gives time in microseconds which I can use to measure the time consumed by my function?</p>
  
  <p>-AD</p>