Click here to Skip to main content
15,891,409 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, guys I’m really in big problem and you are my last chance due to the important number of expert in the site.
I am a student in computing and this year I am finishing my studies. I had, as project , developing a program ,using C language, that permits the " Calculation of time of execution of parallel programs ",My first(and my big one) problem is that i don't know where to Begin, My second is that i have no idea about the type if solution that i have to find out, i clarify : I have good knowledge in parallel programming but not this "time estimation" because i do not know is the solution going to be a mathematical formula or just like always time=time of calculation+time of communication) and third Ununfortunately I found that the resources that can help me they are all not free (oh yes another poor boy and I am not ashamed of telling it beacause I am planning to be a good man in future this is what count for me )and the free ones are very poor in information. So please can anyone of you gentleman help me i will be forever grateful (I’m asking for forums, sites,documents,books, codes,explanations, a similar projects... but please guys remember it must be free besause my studies took me every cent) Thanks very match in advance.
My Email: ka_3@hotmail.fr
PS: excuse me if there are spellings or grammar mistakes,Mainly i speak French and English is my second one. Sorry for everyone who met problems while reading my article ^^
Posted

1 solution

In general, to study the performance of an algorithm you should fist implement the algorithm and than implement a function that

- queries a timer
- call the algorithm giving it the required testing data
- queries the timer (again)

The difference between the values of the two queries is the elapsed.
About timers, you can fund some useful articles here
http://www.codeproject.com/info/search.aspx?artkw=high+resolution+timer[^]
or by google "windows high resolution timer".
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900