Skip to content

Instantly share code, notes, and snippets.

@mluton
Created October 10, 2012 17:12
Show Gist options
  • Select an option

  • Save mluton/3866998 to your computer and use it in GitHub Desktop.

Select an option

Save mluton/3866998 to your computer and use it in GitHub Desktop.
Timing Code Execution
NSDate *startTime = [NSDate date];
// Code goes here
NSDate *endTime = [NSDate date];
NSTimeInterval executionTime = [endTime timeIntervalSinceDate:startTime];
NSLog(@"Response Time: %f", executionTime);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment