func delayPerform(intervals: Double!,action:() -> Void) -> Void{
let delayIntervals = Double(NSEC_PER_SEC) * intervals
let time = dispatch_time(DISPATCH_TIME_NOW, Int64(delayIntervals))
dispatch_after(time, dispatch_get_main_queue(), action)
}
let delayIntervals = Double(NSEC_PER_SEC) * intervals
let time = dispatch_time(DISPATCH_TIME_NOW, Int64(delayIntervals))
dispatch_after(time, dispatch_get_main_queue(), action)
}