Posted at

計測

More than 5 years have passed since last update.

NSDate *startDate = [NSDate date];

//
// do something
//
NSTimeInterval interval = [[NSDate date] timeIntervalSinceDate:startDate];
NSLog(@"Time is %lf (sec)", interval);