As a beginner in assembly, I'm not familiar with how to ascertain the timings or clock cycles. I was hoping I could obtain a template which would allow me to insert my code, or insert the template code before & after the section to be tested.
Any suggestions?
Thanks.
I just found a great timing function you have to use Windows API:
GetTickCount()
You could call GetTickCount(), then run your code that you want to time, then call GetTickCount() and see how many ticks passed.
Hope that helps.
Jeff C
:U
P.S. I got the idea from Optimizing Visual C++ with Assembly Code (forgot the author's name at the moment).
Go to the laboratory and find MichaelW's code timing macros.
OceanJeff32,
GetTickCount is bad for timing, it is not high interval timer, and depending on OS, it is usually updated like every 10ms..
On C++ code you should use something like QueryPerformanceCounter to get more accurare results.