I’m looking to create functionality that gets repeated very quickly – around 50ms. I need, however, as much consistency as possible in the call and I have found NSTimer to be a bit erratic. It seems I might find some help with keeping time from mach_absolute_time. Any tips on using this to create an extremely accurate timer?
I’m looking to create functionality that gets repeated very quickly – around 50ms. I
Share
Have you had a look at GCD, specifically
dispatch_source_create()?http://developer.apple.com/library/ios/documentation/Performance/Reference/GCD_libdispatch_Ref/Reference/reference.html#//apple_ref/c/func/dispatch_source_create