Created
October 10, 2012 17:12
-
-
Save mluton/3866998 to your computer and use it in GitHub Desktop.
Timing Code Execution
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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