The challenge is launched and I thank you in advance.
for a time count of 1sec and even then, I have a loss of 1sec
You are challenging us? Isn't this your task.
Hi,If I were you and I couldn't find any solution, I would try this. You can connect your microcontroller reset pin to a RTC. Some RTCs can log the reset time and each time you can read the last reset time.
I can't think of anyway to do this with reasonable hardware and firmware mods, let alone without! The big issues: everything gets reset by reset button, I don't think you can tell whether a reset was reset button, POR or BOD reset, and I think the bootloader destroys the evidence of a WDT reset.Worse still, the mechanism used to reset the chip to upload a new sketch or when the serial monitor is opened is by pulsing the reset line low, so that looks just like a button press.updating eeprom is easy - obly update when it changes and you can count up to a million resets before jitting the endurance limit. That is of course assuming you have a way to detect the kind of resets you wish to count. That's the hard part.
I don't understand what this means. Are you resetting once a second or are you talking about the bootloader delay?