Reliably trigger an event at (TIME % N == 0) intervals