Controlling the number of delay elements connected in series in the ring oscillator