implement smooth clock tick. Qiu