<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 1 April 2013 10:45, Mike Versteeg <span dir="ltr"><<a href="mailto:mike@mikeversteeg.com" target="_blank">mike@mikeversteeg.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks John. As I said this is more prone to jitter than a timer event. I've also remember to change the priority but oddly enough, at least on W7, it makes no difference: I still get the occasional (exact) 10 ms delay, which almost never happens when using a timer.<br>
</div>
</blockquote></div><br></div><div class="gmail_extra">I presume MS Windows still doesn't provide timers with <1ms resolution, be it event-based or something like usleep/nanosleep? I haven't seen your original post, but I've already struggled myself to get reliable 1kHz realtime behaviour without external hardware. I ended up with a busy-wait loop, (hogging the CPU was acceptable in my case).</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">R</div></div>