JGOCTimer is a lightweight timer extension for OC. Swift
JGOCTimer is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "JGOCTimer"
#import "JGTimer.h"
executeTask: start: interval: repeats: async:(BOOL)async
[JGTimer execTask:self selector:@selector(doTask) start:2.0 interval:1.0 repeats:YES async:NO];
executeTask: selector: start: interval: repeats: async:
[JGTimer executeTask:^{[self doTask];} start:2.0 interval:1.0 repeats:YES async:NO];