how would I check how long a program takes for it to be completed.
(i.e the time it takes for the program to be finished doing its calculation)) Thanks

take a look at the ctime header. If you need more accurate results then you will have to go into OS specific functions

Chris

how would I check how long a program takes for it to be completed.
(i.e the time it takes for the program to be finished doing its calculation)) Thanks

Make 10% of calculations then multiply elapsed time to 9 ;)...

dwOldTime = GetTickCount();
DoSomething();
dwTimeElapsed = GetTickCount() – dwOldTime;

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.