<div class="gmail_quote">On Mon, Nov 2, 2009 at 11:27 AM, &quot;Martin v. Löwis&quot; <span dir="ltr">&lt;<a href="mailto:martin@v.loewis.de">martin@v.loewis.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Hmm. This creates a busy wait loop; if you add larger sleep values,<br>
then it loses accuracy.<br></blockquote><div><br>I thought that at first, too, but then I checked the documentation for Sleep(0):<br><br>&quot;A value of zero causes the thread to relinquish the remainder of its
time slice to any other thread of equal priority that is ready to run.&quot;<br><br>(this is not to say that I think the solution with Sleep is worthwhile, though...)<br></div></div><blockquote style="margin: 1.5em 0pt;">
--<br>
Daniel Stutzbach, Ph.D.<br>
President, <a href="http://stutzbachenterprises.com">Stutzbach Enterprises, LLC</a>
</blockquote>