I completely overlooked that the RTC survives a deepsleep. So time() is just what I need, thanks.
We expect our sensors to go to deepsleep about 50.000 times during their life time. EEPROM handles minimal 300.000 erase/write cycles, so we’re good
In our case I can determine the cause of the wake up by checking the WAKE pin.
Best,
Mark