i have implemented an algorithm and the execution time is really small and when I use clock() I get a 0 as a result
is it possible to make clock() display results in milliseconds or even smaller like microseconds?
if yes, how is this possible? what parameters should I change?
all I do is
i need to gather statistical data in seconds in order to see how my implementation reacts on different inputsCode:time_t before, after; before = clock(); algorithm after = clock(); time <- (double)(after-before)/CLOCKS_PER_SEC