![]() |
execution time of a sudoku program
Hi,I am attaching a file containing a sudoku solving program in c.How can I get the execution time for this one?Please help.
Code:
#include<stdio.h> |
Re: execution time of a sudoku program
I have removed the attachment and moved the content of it into the post.
The execution time can be found but using the time difference at the start of the execution and when you are done with the calculation. |
Re: execution time of a sudoku program
how to get the starting time and end time?Can we get that in milliseconds?
The time calculated by this way will include other execution times too,if the system is multitasking. |
Re: execution time of a sudoku program
You want to calculate the execution time of your code only then it would calculate the execution time of your code but the multitasking glitch is something you have to deal with but I am sure the effect on your personal computer would not be very high.
time_t can help you get the time |
Re: execution time of a sudoku program
i have tried time.h header file and clock( ) function.But i don't the unit of the output.it always comes 1 or 0.Can we get that in milliseconds?a syntax would help better.
|
Re: execution time of a sudoku program
The time() function is what you need.
|
Re: execution time of a sudoku program
Quote:
|
| All times are GMT +5.5. The time now is 09:51. |