title: Make editor responsive during the loop
body: <p>I'm currently creating a debugging utility and one feature is force hang the entire game in a short period.</p>
  
  <p>Simple loop is perfect solution for me, however this also blocks Unity Editor.
  This is a very obvious consequence but very annoying.</p>
  
  <p>Is there any way to process editor events during custom loops?</p>
  
  <pre class="lang-cs prettyprint-override"><code>void SleepEntireGame(int ms) {
    while( timeReached == false ) {
      // do nothing
      // because all i need is just hold the game in a short period.
      ;
  
      // I'm looking for something like this:
      UnityEditor.ProcessEvents();
    }
  }
  </code></pre>
  
  <ul>
  <li>Please don't recommend me any other GOOD way to pause the game. Thanks</li>
  </ul>