I want a dynamic timer to tell me how long it has been since a file update. I have coded a simple timer for this, but an hour or two in after completing an update, the dynamic timer stops responding and just reads "0 seconds since last update".
I think the same problem happens when using the Dynamic Clock example from Mathematica:
Dynamic[DateString, UpdateInterval -> 1]
Initially, this clock works fine. But similar to my basic timer, after about an hour or two the time on the clock just stops updating. If I save the notebook running the dynamic clock code above, close the file and re-open the notebook, the clock shows the correct time and is ticking like it should.
Is there a way for the Dynamic clock to continually read the correct time without closing and re-opening the notebook file? I am currently using Mathematica 12.