Tuesday, July 28, 2009

I need some help from a expert in visual C++?

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

I need some help from a expert in visual C++?
you can get the elapsed time with the code below; the timer function is timeGetTime().








DWORD startTime, endTime;


DWORD elapsedTime;


startTime = timeGetTime();


// run your program


endTime = timeGetTime();


elapsedTime = endTime - startTime();
Reply:#include %26lt;time.h%26gt;


...


int executionSeconds = clock()/CLOCKS_PER_SEC;


...


No comments:

Post a Comment