title: Making a timer in C# - Seconds to minutes to hours etc
body: <p>I am trying to make a timer in C#. I do this by counting frames then making a variable(seconds) that is equal to the number of frames divided by 60. I also count minutes by having another variable(minutes) that is equal to seconds divided by 60.</p>
  
  <p><em><strong>The problem</em></strong>
  When minutes is upped by one, seconds keeps counting and i am not sure how to fix this. I want to add one to minutes whenever seconds reaches 60 but then go back down to zero without seting minutes to zero.</p>
  
  <p>Here is what I've tried:</p>
  
  <pre><code>    int frames = 0;
      int seconds = 0;
      int minutes = 0;
  </code></pre>
  
  <p><em><strong>This is in update:</em></strong></p>
  
  <pre><code>    protected override void Update(GameTime gameTime)
      {
  
          minutes = seconds / 60;
  
          seconds = frames / 60;
  
          frames += 1;
  </code></pre>