Overview
| Artifact ID: | e694535fdda6ee75d1c5bc0e09cffffdedc68c012de751778aa108f97bcb8bba |
|---|---|
| Ticket: | 4ee9b4f3e965a7da51330438fc4ed081acc339b8
Single iteration [time] has 36 minute overflow |
| User & Date: | sebres on 2019-01-28 16:28:01 |
Changes
- closedate changed to: "2458512.18612779"
- closer changed to: "sebres"
- comment changed to:
The command time $script without a $count argument, will time a single iteration, and report the result as a long number of microseconds. Long values overflow, and that imposes a limit that [time] is only good for a $script that will complete in less than 36 minutes. A workaround would be to request at least 2 iterations, but when timing something that takes more than 36 minutes, that's not attractive. Why not return the count as a wide int?
- icomment:
Fixed in [523e36b232] for >= 8.5.<br/> Tcl_NewWideIntObj creates anyway an integer for values <= INT_MAX (due to Tcl_SetWideIntObj), and it was already fixed the same way since 8.7 branch.
- login: "sebres"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"