My program works perfectly but
time_t t0 = time(NULL);
//some stuff
time_t t1 = time(NULL);//stores the current time in seconds in t1
iElapsedYah = t1-t0;
printf("It took %d seconds", iElapsedYah);
but sometimes the code runs so fast that iElapsedYah = 0
but its actually 0.5 seconds
so how can i make a code that can take into account time in something that is not in seconds but faster
like a float that can take into account the milli or nano seconds
i am using windows 7 and my complier is Dev C++