RTC Code with Clock speed setup