I would like to configure the callback directly in the ctor of the Timer instead of providing it in the start method.
Code: Select all
Timer(const AbstractTimerCallback& method, long startInterval = 0, long periodicInterval = 0);
and an empty start() method which could throws if callback hasn't configured yet.
Moreover, I can start and stop the timer but I can't ask the timer is it is running and if I stop it when not running, it throws.
a method isRunning() would be nice.