Overview
| Artifact ID: | e13bca3189cdd1c5cd76e3103d81b38fc338ad1c |
|---|---|
| Ticket: | 1202178fffffffffffffffffffffffffffffffff
Change [time] to return a float for count>1 |
| User & Date: | das on 2005-05-15 02:43:34 |
Changes
- assignee changed to: "hobbs"
- cmimetype changed to: "text/plain"
- comment changed to:
When [time]ing a script of short duration for many counts, a lot of measured precision is lost because [time] only returns an integer number of microseconds. The attached very simple patch changes [time] to return a list with a string rep identical to the current result string, except that the returned time is a DoubleObj for count>1 (and an IntObj for count==1) For things like tclbench that do [lindex 0] on the return value of [time] this transparently avoids string conversion of the microseconds value... I'm not sure if this change would require a TIP? it does change the public API of [time] but in a way that seems innocous...
- foundin changed to: "obsolete: 8.5a3"
- priority changed to: "6"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "das"
- subsystem changed to: "18. Commands M-Z"
- title changed to: "Change [time] to return a float for count>1"
- type changed to: "Bug"