Created
June 16, 2017 04:49
-
-
Save Sunnyztj/995cc5588f6425257f78d89e2edd595e to your computer and use it in GitHub Desktop.
计算 函数运行需要的时间
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
CFAbsoluteTime startTime =CFAbsoluteTimeGetCurrent(); | |
.... Code ...... | |
CFAbsoluteTime linkTime = (CFAbsoluteTimeGetCurrent() - startTime); | |
NSLog(@"Linked in %f ms", linkTime *1000.0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment