Terrible lag in WaitForMultipleObjects
Hey everyone, I've been using WaitForMultipleObjects in my server, and I find that its fourth argument, the timeout in milliseconds, is *terribly* inaccurate. In 100 tries, of waits of .4 to 3.0 seconds, it's on average late returning by 1.154189 seconds (results at WFMO Timeout Accuracy - Pastebin.com and testing code at WFMO Timeout Tester - Pastebin.com).
Is this normal? Perhaps WFMO really only has down-to-the-second accuracy?
In any case, is there any way I can mimic WFMO with a better timer?