what is the function that can measuring the runtime for executing the program and what is the form to write it in visual c++ please.
where i can get more informantion about this subject that would be easy to understand.
thank you
I need some help form an expert in visual c++?
You can do it like this:
#include %26lt;time.h%26gt;
...
time_t start;
time_t end;
start = time( NULL );
...
end = time( NULL );
printf( "Took %d seconds to execute.\n", difftime( end, start ) );
...
This is how I always do it.
Reply:An old way to do it is to look for the current time function online and call the function when your program starts and call it when your program finishes and take the difference of the times.
But then again, Im an old dog C++ programmer ; ) Im sure there are probably more effective ways to get that job done.
Reply:you must have to contact a c++ expert.Any Problem? Ask An Expert And Get Professional Help at
http://directdegree.info
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment