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.
Showing posts with label win32. Show all posts
Showing posts with label win32. Show all posts
Wednesday, November 28, 2007
Subscribe to:
Posts (Atom)