Skip to content
Tcl Source Code Artifact [86de9aefe1]
Login

Artifact [86de9aefe1]

Artifact 86de9aefe1b6cf9c49aa9a8db546b285945f75c6:

Ticket change [86de9aefe1] - New ticket [1052859fffffffff|1052859fff] <i>unexpected behavior of after cmd (time synchronization)</i>. by nobody on 2004-10-23 18:39:23.
D 2004-10-23T18:39:23
J assignee nobody
J cmimetype text/plain
J comment According\sto\sthe\sdescription\sin\sthe\stcl\suser\sguide\sthe\s\nafter\scommand\sshould\sexecute\sa\sscript\safter\sa\stime\s\ndelay\s(timespan\sspecified\sby\sthe\sfirst\sargument).\n\nWhen\schanging\sthe\ssystem-time\sall\spending\stimer\s\noperations\sare\saffected\sto\sbehave\swrong.\nIf\sthe\stime\sis\sbeing\schanged\sto\sa\sfuture\stime\sall\stimers\nare\sreduced:\s\sdelay\s-=(Tnew-Told).\s\nIf\sthe\stime\sis\sbeing\schanged\sto\sa\stime\sin\sthe\spast\sall\s\ntimers\sare\sextended:\sdelay\s+=\s(Told-Tnew).\nThis\simplemented\sbehavior\sshould\sbe\srealized\sby\san\sat-\ncommand\sat\s<utcTime>\s[<script>],\seg:\sat\s[expr\s100+\n[clock\sseconds]\s]\s{\sputs\s"hello\sworld"\s},\snot\sby\sthe\safter-\ncommand.\nIf\syou\shave\scyclic\stasks\s(e.g.\sretry\stimer)\sthis\s\n(implemented)\sbehavior\sof\sthe\safter\scommand\sis\snot\s\nuseable.\s\nIf\stime\ssynchronization\son\scomputers\sis\sbeing\sapplied\son\s\nbatteryless\scomputer\ssystems\sthis\sbehavior\sarises\sat\s\nleast\severy\stime\sthe\ssystem\sstarts.\nSolution:\nDo\snot\suse\sthe\stime()-command\sto\simplement\sthe\stimer.\nInstead\sof\sdoing\sthis\suse\san\smonotonically\sincreasing\s\ntimer\slike\sGetTickCount()\son\sWindows-system\sand\s\nequivalent\scalls\son\sother\splatforms.\n\n\s\n\n\n\s\n
J foundin obsolete:\s8.4.7
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem None
J title unexpected\sbehavior\sof\safter\scmd\s(time\ssynchronization)
J type Bug
K 1052859fffffffffffffffffffffffffffffffff
U nobody
Z 8ad081e8e2ab7a9c3d217cad505d6e09