title: Can I use a timer to update a label every x milliseconds
body: <p>This is my code:</p>
  
  <pre><code>Stopwatch timer = new Stopwatch();
  timer.Start();
  while (timer.ElapsedMilliseconds &lt; 3000) {
      label1.Text = Convert.ToString( timer.ElapsedMilliseconds );
  }
  timer.Stop();
  </code></pre>
  
  <p>My intetion was to update the label's text in real time, so if <code>timer.ElapsedMilliseconds == 1350</code>, then <code>label1.Text = 1350</code>. How can I do this? Thanks in advance!</p>