ViewController.m 470 B

1234567891011121314151617181920212223242526
  1. //
  2. // ViewController.m
  3. // CacheBenchmark
  4. //
  5. // Created by ibireme on 15/10/20.
  6. // Copyright (C) 2015 ibireme. All rights reserved.
  7. //
  8. #import "ViewController.h"
  9. #import "Benchmark.h"
  10. @interface ViewController ()
  11. @end
  12. @implementation ViewController
  13. - (void)viewDidLoad {
  14. [super viewDidLoad];
  15. dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
  16. [Benchmark benchmark];
  17. });
  18. }
  19. @end