Main of clock