秒级别
var dat:Date = Date.init(timeIntervalSinceNow: 0)
var a:TimeInterval = dat.timeIntervalSince1970;
var timep = UInt64(a)
毫秒级别
var a: TimeInterval = Date.init(timeIntervalSinceNow: 0).timeIntervalSince1970
var milli = CLongLong(round(a*1000))