title: Making my integer go up by 1 every second
body: <p>I'm extremely new to c# and I'm wondering how I can make a basic timer that counts up by one using an integer. So far I only have</p>
  
  <pre><code>int timer = 0;
  int max = 10000;
  
          while ( timer &lt; max )
          {
            timer += 1;
  
          }
  </code></pre>
  
  <p>I'm assuming this will automatically boost the timer straight to 1000 because there's no speed set. I'm wondering how I can set a speed to this. Thank you.</p>