cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Please please please :::how I can calcu
Please please please :::how I can calculate the excution time in C++
Feb 18, 2011 at 7:41am UTC
BushraSQU
(10)
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 UTC
Athar
(4466)
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 UTC
Topic archived. No new replies allowed.