title: How can I use Timer (formerly NSTimer) in Swift?
body: <p>I tried</p>
  
  <pre><code>var timer = NSTimer()
  timer(timeInterval: 0.01, target: self, selector: update, userInfo: nil, repeats: false)
  </code></pre>
  
  <p>But, I got an error saying</p>
  
  <pre><code>'(timeInterval: $T1, target: ViewController, selector: () -&gt; (), userInfo: NilType, repeats: Bool) -&gt; $T6' is not identical to 'NSTimer'
  </code></pre>