Calculate the execution time of a function :
we can use timeGetTime() fn available in mmsystem.h .
For using this function,
we have to include the winmm.lib
DWORD dwStartTime = timeGetTime();
StretchBlt(); // which we want to find the execution time
DWORD dwEndTime = timeGetTime();
dwEndTime - dwStartTime is the execution time.
we can also use QueryPerformanceCounter() fn to find the execution time.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment