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

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -