time_start();
int op = 0;
for(int i = 1; i <= n; i++)
op += arr[i]*pow(x, i);
time_stop();
This is the part of code I want to measure, time_start() and time_stop() functions just save clock() output somewhere, and then execution_time() returns the difference, giving execution time.
the problem is that for < 50000, the output is just 0ms, or 1ms. Is this correct output? Can this be more exact?