Skip to content

Instantly share code, notes, and snippets.

@bryanluby
Last active December 23, 2015 09:29
Show Gist options
  • Save bryanluby/6615028 to your computer and use it in GitHub Desktop.
Save bryanluby/6615028 to your computer and use it in GitHub Desktop.
Objc: Simple code timing block
NSTimeInterval start = [[NSDate date] timeIntervalSince1970];
// Code to execute.
NSTimeInterval finish = [[NSDate date] timeIntervalSince1970];
NSLog(@"Execution took %f seconds.", finish - start);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment