计算代码运行时间

NSDate* tmpStartData = [NSDate date];
//You code here...
double deltaTime = [[NSDate date] timeIntervalSinceDate:tmpStartData];
NSLog(@"cost time = %f", deltaTime);

  

posted @ 2016-12-07 13:57  N了歌C  阅读(98)  评论(0编辑  收藏  举报