A time-based scheduler for function callbacks