2015-02-24 47 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);