Hi guys, I was reading another post and someone wrote about how many microseconds two different functions took to calculate the same results... (i didn't want to hijack the other thread)
How does one get the time in microseconds?
I currently have a program that uses...
time_t start, end;
time (&start);
//code here//
time (&end);
timediff = difftime(end, start);
to get the time taken to run the code. but this only gets results in increments of 1 second so if it takes less than one second my code displays 0.00 seconds.
also, I tried using the macro _M_AMD64 because I have an x64 cpu but it did not work. Is there another macro that works with this, i also tried _WIN64, but no.