Can someone give me the syntax/a code example of a timer function, where I could start and end a timer to determine the length of time a given operation took? Thx.
you need set a timer:
SetTimer(hWnd,TimerID,EachMilliseconds,0);
handle WM_TIMER where wParam = TimerID in WndProc or
SetTimer(hWnd,TimerID,EachMilliseconds,lpfnTimerProc);
handle timer in timer proc. At the end
KillTimer(hEnd,TimerID);
John Fill
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.