Skip to content

Instantly share code, notes, and snippets.

@jyliang
Last active August 29, 2015 13:57
Show Gist options
  • Save jyliang/9479160 to your computer and use it in GitHub Desktop.
Save jyliang/9479160 to your computer and use it in GitHub Desktop.
method time
NSDate *start = [NSDate date];
//process
NSDate *methodFinish = [NSDate date];
NSTimeInterval executionTime = [methodFinish timeIntervalSinceDate:start];
NSLog(@"Execution Time: %f", executionTime);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment