I'm using below code to get the total time of my program.
clock_t start=clock();
//doing some work
clock_t end=clock();
printf("%f \n",(double)(end-start)/(double)CLOCKS_PER_SEC);
I'm running my program in virtual machine. It always shows me 0.000000
! Do you know why? Is it because of VM?