Elapsed Time

let start1 = NSDate()
//.. Do Something ..
let end1 = NSDate()
let timeInterval: Double = end1.timeIntervalSinceDate(start1)
print("Elapsed Time: \(timeInterval)")

Tags: