I need to compute the runtime of sorting algorithms. I've done the following:
steady_clock::time_point t3 = steady_clock::now();
quickSort(v, 0, n - 1);
steady_clock::time_point t4 = steady_clock::now();
duration<double> time_span = duration_cast<duration<double,nano>>(t4 - t3);
The problem is that for time I can not compute times less than 0.001 seconds, the value of time_span
appears equal to 0.