title: How to use sys/time.h in windows?
body: <p>I am using MSVS 2006 and trying to find time in microseconds in my program. I try to call sys/time.h in the header but this error is compiled.</p>
  
  <pre><code>fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
  Error executing cl.exe.
  </code></pre>
  
  <p>and this is my code,</p>
  
  <pre><code>#include&lt;sys/time.h&gt;
  #include&lt;stdio.h&gt;
  int main()
  {
     struc timeval stop,start;
     gettimeofday(&amp;start,NULL);
  
     /*my function here*/
  
     gettimeofday(&amp;stop,NULL);
     printf("took %lu usec\n",stop.tv_usec-start.tv_usec);
  }
  </code></pre>