No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
BYTimer.h
BYTimer.m
README.md
Singleton.h

README.md

BYTimer

This is a the GCD timer Ruin a per second

Usage

    [BYTimer timerWithTimeout:10 handlerBlock:^(int timeout) {
        NSLog(@"timeout %d", timeout);
    } finish:^() {
        NSLog(@"end");
    }];

or

    BYTimer *timer = [[BYTimer alloc] init];
    [timer createTimerWithTimeout:10 handlerBlock:^(int presentTime) {
        NSLog(@"timeout %d", presentTime);
    } finish:^{
        NSLog(@"end");
    }];