|
2019-01-28
| ||
| 16:28 | • Closed ticket [4ee9b4f3e9]: Single iteration time has 36 minute overflow p... artifact: e694535fdd user: sebres | |
| 16:19 | merge 8.6 ([4ee9b4f3e965a7da5133] was already fixed in 8.7, so no functional changes here) check-in: 2f22a13f00 user: sebres tags: core-8-branch | |
| 16:12 | fixes [4ee9b4f3e965a7da5133]: result of command `time` overflows by single iteration longer as 35 mi... check-in: 523e36b232 user: sebres tags: core-8-5-branch | |
|
2017-09-25
| ||
| 14:00 | • New ticket [4ee9b4f3e9] Single iteration time has 36 minute overflow. artifact: a85f28d11d user: dgp | |
Single iteration [time] has 36 minute overflow
Closed / Fixed4ee9b4f3e965a7da51330438fc4ed081acc339b8Created 9 years agoUpdated 8 years ago
Descriptionplain2017-09-25 14:00:41
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?
sebreswiki2019-01-28 16:28:01
Fixed in [523e36b232] for >= 8.5.
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.
Log in (anonymous is fine) to add a comment.