Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 86de9aefe1b6cf9c49aa9a8db546b285945f75c6
Ticket: 1052859fffffffffffffffffffffffffffffffff
unexpected behavior of after cmd (time synchronization)
User & Date: nobody on 2004-10-23 18:39:23
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed 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 changed to: "obsolete: 8.4.7"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "None"
  10. title changed to:
    unexpected behavior of after cmd (time synchronization)
    
  11. type changed to: "Bug"