Dynamic setting of clock