Menu

#3743 The documentation for the time limits may be improved

obsolete: 8.5a6
closed-fixed
7
2007-08-19
2007-07-11
Anonymous
No

As far as I am concerned, the documentations of time limits could be improved

Pages :
http://www.tcl.tk/man/tcl8.5/TclCmd/interp.htm#M45
and :
http://www.tcl.tk/man/tcl8.5/TclLib/Limit.htm

Especially, the fact that time limits must be given in "absolute time" is not very clear.

When reading carefully the current doc, I really thought that time limits had to be given in terms of "time since the interpreter was created".

An example would help, such as :
"
% interp limit testlimit time -seconds [expr [clock seconds] + 10]
sets the time limit 10 seconds in the future
"

Also, in the text, it could be said that the limit will be reached when the current time (given by the clock command, or Tcl_GetTime) will reach the time limit.

Best-
Nicolas

Discussion

  • miguel sofer

    miguel sofer - 2007-07-11
    • assigned_to: msofer --> dkf
     
  • Donal K. Fellows

    • priority: 5 --> 7
     
  • Mark Janssen

    Mark Janssen - 2007-08-06

    Logged In: YES
    user_id=1463011
    Originator: NO

    This makes me wonder why time limits have to be provided in absolute time anyway. It seems to me that the usually one wants to specify a certain time from now. Any reason the value has to be specified absolutely?

     
  • Donal K. Fellows

    • status: open --> closed-fixed