I was thinking like

check what the current ticks are
calculate what the next ticks should be
check ticks on a timer
fire event when ticks is met.