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

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
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
Topic archived. No new replies allowed.