- - (NSTimeInterval)loadImageNamed:(NSString *)name
- {
- @autoreleasepool
- {
- NSTimeInterval startTime = CACurrentMediaTime();
- for (int i = 0; i < NumberToLoad; i++)
- {
- [GLImage imageWithContentsOfFile:name];
- }
- NSTimeInterval endTime = CACurrentMediaTime();
- return endTime - startTime;
- }
- }
复制代码 |