像这样的东西:
NSDate *start = [NSDate date];
// do the thing you are timing
NSDate *stop = [NSDate date];
NSTimeInterval duration = [start timeIntervalSinceDate:stop];
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2583 次 |
| 最近记录: |