Steady ticking and locking of a clock