Please please please :::how I can calculate the excution time in C++

Feb 18, 2011 at 7:41am
Hi;

I want a function that calculate the excuation time in C++

my program is :

Device an algorithm to determine the distance between the two points that are

closest (note : we have a set of points in the coordinate system).


and also I want to apply the relationship between the number of points(n)

and the excution time (t) by using the Excel.


thank you
Feb 18, 2011 at 7:44am
You can use clock() to measure execution time in clocks. CLOCKS_PER_SEC indicates how many clocks there are to the second.
Depending on the system, the value it returns can be different, though.
Last edited on Feb 18, 2011 at 7:47am
Topic archived. No new replies allowed.