How to make independent Thread sleep in c# : <p>So I start my thread like this:</p>

<pre><code>    Thread thread = new Thread(myFunction);
    thread.start();
</code></pre>

<p>And this function has a loop that needs to execute once a second:</p>

<pre><code>   public void myFunction(){
     while(true){
         sleep?
     }
   }
</code></pre>

<p>How do I make this thread sleep without pausing my main thread?</p>
