Created
March 24, 2016 15:32
-
-
Save priore/7751caf8f300a9988775 to your computer and use it in GitHub Desktop.
Performance examination procedure
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
| // performance examination procedure | |
| #ifdef DEBUG | |
| double then, now; | |
| now = CFAbsoluteTimeGetCurrent(); | |
| #endif | |
| // | |
| // TODO: your code here | |
| // | |
| #ifdef DEBUG | |
| then = CFAbsoluteTimeGetCurrent(); | |
| NSLog(@"**** time %f sec", then-now); | |
| #endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment