Auto clock circuit