Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi everyone, I need to build a lin

Status
Not open for further replies.

anatazi

Programmer
Jun 24, 2002
33
0
0
US
Hi everyone,
I need to build a linked list by merging two sorted character arrays together.
How do I go about that and where can I find some good information on working with linked lists?
Thanks.
 
Hi!

I just wanna know how to time a segment of code I have. I have an algorithm implemented and I need to take the timing results. Can anyone help me out in this....

Thankx,
Pramodh
 
Try this:

#include <time.h>
....
clock_t start, finish;
double duration;

start = clock(); // put this at the begening of your code
....
...
finish = clock(); //this one at the end

// the total duration of the program is given here
duration = (double)(finish - start) / CLOCKS_PER_SEC;


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top