title: Thread.Sleep for less than 1 millisecond
body: <p>I want to call thread sleep with less than 1 millisecond.
  I read that neither <code>thread.Sleep</code> nor Windows-OS support that.</p>
  
  <p>What's the solution for that?</p>
  
  <p>For all those who wonder why I need this:
  I'm doing a stress test, and want to know how many messages my module can handle per second.
  So my code is:</p>
  
  <pre><code> // Set the relative part of Second hat will be allocated for each message 
   //For example: 5 messages - every message will get 200 miliseconds 
   var quantum = 1000 / numOfMessages;
  
   for (var i = 0; i &lt; numOfMessages; i++)
   {
        _bus.Publish(new MyMessage());
        if (rate != 0) 
            Thread.Sleep(quantum);
   }
  </code></pre>
  
  <p>I'll be glad to get your opinion on that.</p>