Skip to content

Instantly share code, notes, and snippets.

@brianhanifin
Created October 31, 2011 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianhanifin/1328593 to your computer and use it in GitHub Desktop.
Save brianhanifin/1328593 to your computer and use it in GitHub Desktop.
Obj-C: Code execution timing snippet
NSDate *start = [NSDate date];
.
.
.
NSLog(@"duration: %f", [start timeIntervalSinceNow]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment