ViewController.m 682 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // ViewController.m
  3. // CacheBenchmark
  4. //
  5. // Created by ibireme on 2017/6/29.
  6. // Copyright © 2017年 ibireme. All rights reserved.
  7. //
  8. #import "ViewController.h"
  9. #include "Benchmark.h"
  10. @interface ViewController ()
  11. @end
  12. @implementation ViewController
  13. - (void)viewDidLoad {
  14. [super viewDidLoad];
  15. // Do any additional setup after loading the view, typically from a nib.
  16. dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
  17. [Benchmark benchmark];
  18. });
  19. }
  20. - (void)didReceiveMemoryWarning {
  21. [super didReceiveMemoryWarning];
  22. // Dispose of any resources that can be recreated.
  23. }
  24. @end