标签:style blog io color ar os sp for div
//获取开始时间 NSDate* tmpStartData = [NSDate date]; /*( 执行代码段 )*/ for (int i = 0; i<10000; i++) { DLog(@"%d",i); } //计算代码段所用时间 double deltaTime = [[NSDate date] timeIntervalSinceDate:tmpStartData]; NSLog(@"时间间隔 %f 秒", deltaTime);
标签:style blog io color ar os sp for div
原文地址:http://www.cnblogs.com/weiboyuan/p/4080244.html