I can't figure out how to time events in my app.
SetTimer() doesn't seem to send WM_TIMER events to the message que within reasonable precision. (A SetTimer call with 1000 milliseconds on the timeout seem to end up with a WM_TIMER message every 800 to 1200 milliseconds).
And when I call the GetTickCount in my own timer routine the message que seem to get lockup.
I've also tried the timeGetTime() but I get a couple of linker errors even if I included the right header-file (mmsystem.h)
Maybe the error is not in how I use these calls, maybe it is my Peek-,Get- and DispatchMessage calls that are being called in the wrong order or place.
Please help out [sig][/sig]
SetTimer() doesn't seem to send WM_TIMER events to the message que within reasonable precision. (A SetTimer call with 1000 milliseconds on the timeout seem to end up with a WM_TIMER message every 800 to 1200 milliseconds).
And when I call the GetTickCount in my own timer routine the message que seem to get lockup.
I've also tried the timeGetTime() but I get a couple of linker errors even if I included the right header-file (mmsystem.h)
Maybe the error is not in how I use these calls, maybe it is my Peek-,Get- and DispatchMessage calls that are being called in the wrong order or place.
Please help out [sig][/sig]