JGuizard
1/1/2016 - 6:46 PM

timer

//START
timer = NSTimer.scheduledTimerWithTimeInterval(1, target: self, selector: Selector("update"), userInfo: nil, repeats: true)

//STOP
timer.invalidate()
timer=nil

func update()
{
  print("do something")
}