Hey, can someone provide me with syntax/a code example of a timer function that'll enable me to start timing, then finish timing after an event to determine it's duration? 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.