"after" timer script is never called if the system time is set backwards.



Hello,

I develop an embedded system featuring some Tcl applications.

To update a clock view, I use a simple "label" widget and an "after 500"
script to update that widget's contents to the latest time. That works well
for the common use case. In the system, there is a second application
(modified tclhttpd) which I use to change the system clock (via the "date"
command). This works well, too.

However, whenever I change the system time *backwards*, the clock view
stalls. When I change back to the future time, it immediately restarts
updating the view.

I assume there is a problem with the "after" command I use. Is there a way
to solve this issue?

Kind regards

Jan


.



Relevant Pages