Regulating stochastic clocks