The button the user presses will also toggle a gpio pin, allowing the program to detect whether the user woke it or it woke itself from deepsleep. I am using the rtctime module to keep track of time. My issue is that if the user manually wakes the watch from deep sleep, the rtctime value is incremented by the length I told it to sleep, not the actual time it slept. I need a way to track the length of the deep sleep, so the watch can keep time accurately when woken. Also, if I could measure the time of the sleep, it would make it much easier to distinguish between the user waking the watch, and a regular wake.
Thanks for your assistance!