solid tick-based metronome and refactor