Aur*_*ila 76
loop
{
NSDate *start = [NSDate date];
// a considerable amount of difficult processing here
// a considerable amount of difficult processing here
// a considerable amount of difficult processing here
NSDate *methodFinish = [NSDate date];
NSTimeInterval executionTime = [methodFinish timeIntervalSinceDate:start];
NSLog(@"Execution Time: %f", executionTime);
}
Run Code Online (Sandbox Code Playgroud)
应该管用.
| 归档时间: |
|
| 查看次数: |
17786 次 |
| 最近记录: |