void test()
{
}
int main()
{
timeval tStart,cTime;
int i = 0;
long long tPassed = 0;
gettimeofday(&tStart, 0);
#pragma omp parallel for
for(i = 0; i < INT_MAX; ++i)
{
test();
}
gettimeofday(&cTime, 0);
cTime.tv_sec -= tStart.tv_sec;
cTime.tv_usec -= tStart.tv_usec;
tPassed = 1000000LL * cTime.tv_sec + cTime.tv_usec;
tPassed /= 1000;
printf("Time = %lldms\n", tPassed);
return 0;
}