@nothacking @lcamtuf you also specify iiuc what's the source of the clock (external clock, external quartz, internal oscillator?), which clock consumers are clocked (and thus, which peripherals are usable), and potentially more things around clocks that get and that don't get suspended in sleep modes.
(There's some state you are in just after reset and thus usually would just write the difference wrt that state.)