ticker - periodic and one-time event handler