data structures - Time complexity of c programs -
is there code in c analyse time taken program after giving inputs can find time complexity of program giving different inputs. error of 1 millisecond can't tolerated.i want exact time .
there functions calculate time in time.h
just use following example
clock_t start = clock(); // job clock_t end = clock(); float seconds = (float)(end - start) / clocks_per_sec;
Comments
Post a Comment