uTimerLib
https://github.com/Naguissa/uTimerLib
uTimerLib Documentation

Arduino tiny and cross-device compatible timer library.Timers used by each microcontroller:

You have public TimerLib variable with following methods:

  • TimerLib.setInterval_us(callback_function, microseconds);* : callback_function will be called each microseconds.
  • TimerLib.setInterval_s(callback_function, seconds);* : callback_function will be called each seconds.
  • TimerLib.setTimeout_us(callback_function, microseconds);* : callback_function will be called once when microseconds have passed.
  • TimerLib.setTimeout_s(callback_function, seconds);* : callback_function will be called once when seconds have passed.
  • TimerLib.clearTimer();* : will clear any timed function if exists.