-
May 28th, 2010, 01:34 AM
#1
Timer more precise than SetTimer
I'm curious if there's a timer function more precise than calling SetTimer and then processing WM_TIMER events? I call it at a frequency of 100ms and sometimes those WM_TIMER messages get delayed on older systems.
-
May 28th, 2010, 01:57 AM
#2
Re: Timer more precise than SetTimer
Multimedia timers are more precise.
-
May 28th, 2010, 02:41 AM
#3
Re: Timer more precise than SetTimer
Little by little one goes far
Keep moving.......!
Nothing is impossible !
-
May 28th, 2010, 06:46 AM
#4
Re: Timer more precise than SetTimer
That's how regular timers work, the interval you set is a lower limit, but not a precise interval. If the system is busy, a WM_TIMER can be delayed for several seconds, nomatter how low you've set the interval, and even regardless of the priority the thread/process are running on.
Multimediatimers are more precise both in allowing finer granularity as well as guaranteeing the timer procedure will get called closer to the set intervals.
But you are restricted in what you can safely do from a multimedia timer procedure.
-
May 28th, 2010, 12:10 PM
#5
Re: Timer more precise than SetTimer
Thank you everyone.
Originally Posted by OReubens
But you are restricted in what you can safely do from a multimedia timer procedure.
What do you mean by that?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|