Skip to content

Instantly share code, notes, and snippets.

@kelp404
Last active December 11, 2015 19:59
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kelp404/4652484 to your computer and use it in GitHub Desktop.
Save kelp404/4652484 to your computer and use it in GitHub Desktop.
Logging code processing time

##Logging code processing time ###Objective-C

NSDate *timer = [NSDate date];
// your code.
NSLog(@"cost : %f ms", [timer timeIntervalSinceNow] * -1000.0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment