title: Why does my timer in swift keep speeding up?
body: <p>I am creating a trivia app in swift and I have a timer that counts down each question. However as the user progresses with each question the timer speeds up. Can someone help me fix this?</p>
  
  <p>My runGameTimer function:</p>
  
  <pre><code>func runGameTimer()
  {
      gameTimer = Timer.scheduledTimer(timeInterval: 1, target: self, selector: #selector(RockTriviaViewController.updateGameTimer), userInfo: nil, repeats: true)
  
  }
  </code></pre>
  
  <p>My updateGameTimer function:</p>
  
  <pre><code>@objc func updateGameTimer()
  {
      gameInt -= 1
      timerLabel.text = String(gameInt)
      if (gameInt == 0)
      {
          gameTimer.invalidate()
        /*
          if (currentQuestion != rockQuestions[questionSet].count)
          {
              newQuestion()
          }
          else
          {
              performSegue(withIdentifier: "showRockScore", sender: self)
          }
         */
      }
  }
  </code></pre>
  
  <p>Where I call my code:</p>
  
  <pre><code>func newQuestion()
  {
      gameInt = 11
      runGameTimer()
      rockQuestion.text = rockQuestions[questionSet][currentQuestion]
      rightAnswerPlacement = arc4random_uniform(3)+1
      var Button: UIButton = UIButton()
      var x = 1
  
      for i in 1...3
      {
          Button = view.viewWithTag(i) as! UIButton
          if(i == Int(rightAnswerPlacement))
          {
              Button.setTitle(rockAnswers[questionSet][currentQuestion][0], for: .normal)
          }
          else
          {
              Button.setTitle(rockAnswers[questionSet][currentQuestion][x], for: .normal)
              x = 2
          }
      }
  
      currentQuestion += 1
  }
  </code></pre>