ASync Ticker

Example code:

#include "Updateable.h"
#include "ASyncTicker.h"

class Tester: public Updateable
{
    public:
        virtual void update()
        {
            printf("ping\n");
        }
}

int main()
{
    Tester* test=new Tester();
    ASyncTicker at;
    at.addTarget(test,60); // once per minute

    // will never return
    at.run();
}


Please log in to post comments.