06.07.2022, 09:04
The real time clock is handled by a separate chip which has a backup power (superconductor) in case of power loss. Even if the main CPU is frozen the clock should still show a relatively accurate value when the system boots unless it was powered off for more than several hours. Main CPU has a hardware watchdog and there is also software service monitoring.