2015-02-24 51 views

回答

0

您也可以尝试使用记录NSLog的这样的时候:

//log the time 
NSDate *methodStart = [NSDate date]; 

//Do your transaction and when success execute ... 

NSDate *methodFinish = [NSDate date]; 
NSTimeInterval executionTime = [methodFinish timeIntervalSinceDate:methodStart]; 
NSLog(@"Total time = %f", executionTime);