Running on arduino when RTC failed

Dear all,

here i am attaching COde .Please let me know how to run Arduin board on timer interrupt if RTC failed. we know that RTC pin removed it read default values.in this Situation i wanted to run on Arduino . SO can some one help out for coding Completion. Else any library available so i can run on RTC failure