Skip to content
Tcl Source Code History Of Ticket 1052859fffffffff
Login

History Of Ticket 1052859fffffffff

Artifacts Associated With Ticket 1052859fffffffff

  1. Ticket change [86de9aefe1] (rid 131588) by nobody on 2004-10-23 18:39:23:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      According to the description in the tcl user guide the 
      after command should execute a script after a time 
      delay (timespan specified by the first argument).
      
      When changing the system-time all pending timer 
      operations are affected to behave wrong.
      If the time is being changed to a future time all timers
      are reduced:  delay -=(Tnew-Told). 
      If the time is being changed to a time in the past all 
      timers are extended: delay += (Told-Tnew).
      This implemented behavior should be realized by an at-
      command at <utcTime> [<script>], eg: at [expr 100+
      [clock seconds] ] { puts "hello world" }, not by the after-
      command.
      If you have cyclic tasks (e.g. retry timer) this 
      (implemented) behavior of the after command is not 
      useable. 
      If time synchronization on computers is being applied on 
      batteryless computer systems this behavior arises at 
      least every time the system starts.
      Solution:
      Do not use the time()-command to implement the timer.
      Instead of doing this use an monotonically increasing 
      timer like GetTickCount() on Windows-system and 
      equivalent calls on other platforms.
      
       
      
      
       
      
      
    4. foundin initialized to: "obsolete: 8.4.7"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "None"
    10. title initialized to:
      unexpected behavior of after cmd (time synchronization)
      
    11. type initialized to: "Bug"
  2. Ticket change [eaa68309f9] (rid 103410) by dkf on 2004-10-25 15:31:24:

    1. assignee changed to: "kennykb"
    2. subsystem changed to: "06. Time Measurement"
  3. Ticket change [d78c7fdd76] (rid 124007) by kennykb on 2004-10-31 01:18:47:

    1. closedate changed to: "2004-10-30T18:18:47"
    2. closer changed to: "kennykb"
    3. icomment:
      Logged In: YES 
      user_id=99768
      
      Alas, there isn't any way to *wait* for a monotonically
      increasing timer in either Windows or Unix.  Kernel calls
      such as MsgWaitForMultipleObjectsEx (the central call
      of the Windows notifier) and select (the central call of
      the Unix notifier) both use the system clock as a reference.
      While the behavior that you request may be useful,
      it simply doesn't appear possible given the underlying
      API's provided by the kernels.
      
      
    4. login: "kennykb"
    5. mimetype: "text/plain"
    6. resolution changed to: "Wont Fix"
    7. status changed to: "Closed"
    8. username: "kennykb"