Digital clock design