Skip to content
Tcl Source Code Artifact [19e3b57be2]
Login

Artifact [19e3b57be2]

Artifact 19e3b57be24017260341c0558b50dea6e5637d81abccf91a0dab67de5119fc73:

Ticket change [19e3b57be2] - Ticket [1e2c6ce4c8a883c9|1e2c6ce4c8] <i>MS-Windows: after is not continuous, if Wall clock changes</i> status still Open with 3 other changes by oehhar on 2025-05-13 20:00:44.
D 2025-05-13T20:00:44.459
J comment For\sme,\sit\sis\sa\sbig\simprovement,\sif\sthe\safter\sevents\swould\sbe\sindependent\son\sthe\swall-clock.\sI\suse\sdevices\snot\sconnected\sto\sthe\sinternet\sand\sthe\swall-clock\sis\sset\smanualy.\sThis\scauses,\sthat\safter\sevents\sare\sdelayed\sby\sthe\swall-clock\soffset,\sif\sset\sback,\sand\sfire\ssonner\sby\sthe\soffset,\sif\sset\sforeward.\r\nIn\spractice,\sthe\sgui\sfreezes,\sas\sits\supdate\sdepends\son\scontinuous\safter\sevents.\r\n\r\nFor\sme,\sthis\sis\sthe\stop\sanoying\sbug\sof\sTcl/Tk\sand\swork-arounds\sare\svery\sdifficult.\sWhen\sI\sallow\sthe\suser\sto\schange\sthe\swall-clock\sby\san\sAdministrator\sdialog,\sI\sfire\s70\safter\sevents\sin\sa\sone\sminuite\sraster\sin\sthe\sfuture,\sto\shope,\sthat\sat\sleast,\sone\sfires\safter\sone\sminuite\safter\sthe\swall\sclock\schange.\r\n\r\nThere\swere\shuge\sobjections\sto\schange\sthis.\r\n\r\nTicket\s[3328635]\shandles\sthis\sfor\sthe\sUnix\scase,\sbut\shas\sa\sMS-Windows\ssolution\sin\sits\sbugfix-branch\stkt3328635-posix-monotonic-clock\s[https://core.tcl-lang.org/tcl/timeline?r=tkt3328635-posix-monotonic-clock&c=2025-05-13+05%3A42%3A00].\r\nThanks,\sChristian,\sfor\sthis\swork.\r\n\r\nThe\spurpose\sof\sthis\sticket\sis\sto\sextract\sthe\sMS-Windows\spart\sof\sthis\sticket.\r\n\r\nAn\sissue\sof\sthis\sticket\sis\sTIP\s233\s[https://core.tcl-lang.org/tips/doc/trunk/tip/233.md]:\r\n\r\nChristian\shas\sdeactivated\sthis\sTIP\sin\shis\spatch\sand\scalls\sit\snot\sfunctional\sand\snot\sdocumented.\r\nAndreas,\sthe\sTIP\sauthor,\sis\swilling\sto\slook\sinto\sthis.\r\nTo\shis\swords,\sthe\suse-case\sof\sthis\sTIP\sis\snot\scompatible\sto\sa\smonotonic\sclock.\r\nIf\sthis\sTIP\sshould\sonly\sinfluence\sthe\swall\sclock\s(e.g.\sthe\sclock\scommand),\sand\snot\sthe\safter\scommand,\sthen\sthis\scould\sbe\sdone.\r\n\r\nI\sam\snot\ssure\show\sto\sproceed.\sI\sonly\sfear,\sthat\sthis\smay\sbe\slost.\r\nDue\sto\sthat\srisk,\sall\sother\sgreat\sproposals\sand\splatforms\sare\snot\sincluded\shere.\r\n\r\nImplementation\sbranch\sis\s[1e2c6ce4-mswin-monotonic-clock]\sstarting\swith\scheckin\s[8ea9c4081c].\r\n\r\nHere\sis\smy\stest\srecipe:\r\n<verbatim>\r\nproc\spt\ssec10\s{\r\n\s\s\s\sputs\s"sec10=$sec10,\sclock=[expr\s{[clock\sseconds]-$::now}]"\r\n}\r\nset\snow\s[clock\sseconds]\r\nfor\s{set\ssec\s10}\s{$sec<=180}\s{incr\ssec\s10}\s{after\s[expr\s{$sec*1000}]\s[list\spt\s$sec]}\r\nvwait\sforever\r\n</verbatim>\r\n\r\nThen,\sI\sstart\scmd.exe\sas\sAdministrator\sand\stype\s"time"\sand\sI\sadvance\sthe\stime\sby\s10\sminuites.\r\nAlternatively,\syou\smay\shibernate\sthe\scomputer\sand\swake-it\sup\sback,\r\n\r\nThe\sclock-output\sshould\shave\sa\sjump,\sbut\sthe\sone\sminuite\sfrequency\sof\sthe\soutput\sshould\sremain.\r\n\r\nThanks\sfor\sall,\r\nHarald
J login oehhar
J mimetype text/plain
K 1e2c6ce4c8a883c962b77df1d572383fce73ad1c
U oehhar
Z e4f96645f41c5a6759f9fe785cca816b