Measuring Slow Code in Objective-C Jul 7th, 2011 A note to myself, because I can never remember how to do this: 1 2 3 4 NSTimeInterval start = [NSDate timeIntervalSinceReferenceDate]; ...operation here... NSTimeInterval duration = [NSDate timeIntervalSinceReferenceDate] - start; NSLog( @"%f", duration );