Effect timing restart

In leiu of the much request BPM/tap tempo, would it be possible to get a button/macro that would enable the effect timing to restart -- so if you have something that is running at a specific BPM/speed/tempo, that a press would restart the time/counter upon being pressed.