Repeating a code execution
<p>I am trying to repeat a code execution after predefined time passes and i don't want to mess up things by using threads. Is the below code a good practice?</p>

<pre><code>Stopwatch sw = new Stopwatch(); // sw constructor
EXIT:
    // Here I have my code
    sw.Start();
    while (sw.ElapsedMilliseconds &lt; 100000)
    {
        // do nothing, just wait
    }

    System.Media.SystemSounds.Beep.Play(); // for test
    sw.Stop();
    goto EXIT;
</code></pre>
