Created
April 1, 2011 21:31
-
-
Save pixelrevision/898894 to your computer and use it in GitHub Desktop.
Will check the time of method execution
This file contains 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
- (void)someMethod{ | |
StartTimeLog | |
// do some stuff | |
EndTimeLog | |
} |
This file contains 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
#define StartTimeLog NSDate *methodStart = [NSDate date]; | |
#define EndTimeLog NSDate *methodFinish = [NSDate date]; printf("time elapsed was: %f\n", [methodFinish timeIntervalSinceDate:methodStart]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment