Artifacts Associated With Ticket 1e2c6ce4c8
Ticket change [7f54ef69aa] (rid 240039) by oehhar on 2025-05-13 19:49:11:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
For me, it is a big improvement, if the after events would be independent on the wall-clock. I use devices not connected to the internet and the wall-clock is set manualy. This causes, that after events are delayed by the wall-clock offset, if set back, and fire sonner by the offset, if set foreward. In practice, the gui freezes, as its update depends on continuous after events. For me, this is the top anoying bug of Tcl/Tk and work-arounds are very difficult. When I allow the user to change the wall-clock by an Administrator dialog, I fire 70 after events in a one minuite raster in the future, to hope, that at least, one fires after one minuite after the wall clock change. There were huge objections to change this. Ticket [3328635fffffffff] handles this for the Unix case, but has a MS-Windows solution in its bugfix-branch tkt3328635-posix-monotonic-clock [https://core.tcl-lang.org/tcl/timeline?r=tkt3328635-posix-monotonic-clock&c=2025-05-13+05%3A42%3A00]. Thanks, Christian, for this work. The purpose of this ticket is to extract the MS-Windows part of this ticket. An issue of this ticket is TIP 233 [https://core.tcl-lang.org/tips/doc/trunk/tip/233.md]: Christian has deactivated this TIP in his patch and calls it not functional and not documented. Andreas, the TIP author, is willing to look into this. To his words, the use-case of this TIP is not compatible to a monotonic clock. If this TIP should only influence the wall clock (e.g. the clock command), and not the after command, then this could be done. I am not sure how to proceed. I only fear, that this may be lost. Due to that risk, all other great proposals and platforms are not included here. Implementation branch is []. Thanks for all, Harald
- foundin initialized to: "main"
- is_private initialized to: "0"
- login: "oehhar"
- priority initialized to: "5 Medium"
- private_contact initialized to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "oehhar"
- subsystem initialized to: "03. Timer Events"
- title initialized to:
MS-Windows: after is not continuous, if Wall clock changes
- type initialized to: "Bug"
Ticket change [19e3b57be2] (rid 240047) by oehhar on 2025-05-13 20:00:44:
- comment changed to:
For me, it is a big improvement, if the after events would be independent on the wall-clock. I use devices not connected to the internet and the wall-clock is set manualy. This causes, that after events are delayed by the wall-clock offset, if set back, and fire sonner by the offset, if set foreward. In practice, the gui freezes, as its update depends on continuous after events. For me, this is the top anoying bug of Tcl/Tk and work-arounds are very difficult. When I allow the user to change the wall-clock by an Administrator dialog, I fire 70 after events in a one minuite raster in the future, to hope, that at least, one fires after one minuite after the wall clock change. There were huge objections to change this. Ticket [3328635] handles this for the Unix case, but has a MS-Windows solution in its bugfix-branch tkt3328635-posix-monotonic-clock [https://core.tcl-lang.org/tcl/timeline?r=tkt3328635-posix-monotonic-clock&c=2025-05-13+05%3A42%3A00]. Thanks, Christian, for this work. The purpose of this ticket is to extract the MS-Windows part of this ticket. An issue of this ticket is TIP 233 [https://core.tcl-lang.org/tips/doc/trunk/tip/233.md]: Christian has deactivated this TIP in his patch and calls it not functional and not documented. Andreas, the TIP author, is willing to look into this. To his words, the use-case of this TIP is not compatible to a monotonic clock. If this TIP should only influence the wall clock (e.g. the clock command), and not the after command, then this could be done. I am not sure how to proceed. I only fear, that this may be lost. Due to that risk, all other great proposals and platforms are not included here. Implementation branch is [1e2c6ce4-mswin-monotonic-clock] starting with checkin [8ea9c4081c]. Here is my test recipe: <verbatim> proc pt sec10 { puts "sec10=$sec10, clock=[expr {[clock seconds]-$::now}]" } set now [clock seconds] for {set sec 10} {$sec<=180} {incr sec 10} {after [expr {$sec*1000}] [list pt $sec]} vwait forever </verbatim> Then, I start cmd.exe as Administrator and type "time" and I advance the time by 10 minuites. Alternatively, you may hibernate the computer and wake-it up back, The clock-output should have a jump, but the one minuite frequency of the output should remain. Thanks for all, Harald - login: "oehhar"
- mimetype: "text/plain"
- comment changed to:
Ticket change [a8e6d9d63d] (rid 240285) by oehhar on 2025-05-21 10:23:47:
- icomment:
Now in TIP 723: [https://core.tcl-lang.org/tips/doc/trunk/tip/723.md] Thanks for all, Harald
- login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- username: "oehhar"
- icomment:
Ticket change [309bc67fc6] (rid 253745) by apnadkarni on 2026-05-22 09:32:31:
- icomment: "@oehhar, can this now be closed?"
- login: "apnadkarni"
- mimetype: "text/plain"
Ticket change [f6f8823ea8] (rid 253750) by oehhar on 2026-05-22 09:43:46:
- closedate changed to: "2461182.9053987502"
- closer changed to: "oehhar"
- icomment:
Solved by TIP723. Thanks for all, Harald
- login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"