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.
fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
Error executing cl.exe.
and this is my code,
#include<sys/time.h>
#include<stdio.h>
int main()
{
struc timeval stop,start;
gettimeofday(&start,NULL);
/*my function here*/
gettimeofday(&stop,NULL);
printf("took %lu usec\n",stop.tv_usec-start.tv_usec);
}