Ticket UUID: | 705988 | |||
Title: | 64bit clock clicks | |||
Type: | Patch | Version: | None | |
Submitter: | nobody | Created on: | 2003-03-19 00:43:39 | |
Subsystem: | 06. Time Measurement | Assigned To: | kennykb | |
Priority: | 5 Medium | Severity: | ||
Status: | Closed | Last Modified: | 2003-04-14 01:05:45 | |
Resolution: | Accepted | Closed By: | kennykb | |
Closed on: | 2003-04-13 18:05:45 | |||
Description: |
This patch changes the type of TclpGetClicks to Tcl_WideInt. This has the effect that [clock clicks] returns the number of microseconds since 1977. Without this patch the clicks number is ungracefully truncated so the number you get from [clock clicks] can be negative and cycles over every hour or so. I have changed tcl[Unix|Mac|Win]Time.c but I havn't tested Mac or Win. Sam O'Connor [email protected] | |||
User Comments: |
kennykb added on 2003-04-14 01:05:45:
Logged In: YES user_id=99768 Not exactly the submitter's patch, but a 64-bit version of [clock clicks] is now in the HEAD. samoc added on 2003-03-19 12:58:38: Logged In: YES user_id=737265 I guess this could be seen as implmenting TIP 124. I didn't know about the TIP database, I just saw somthing broken and fixed it. I don't think my patch changes the API at all because the clock clicks command only cliams to return some hi-res number. My patch just makes it absolute (at least on Unix). No documentation needs to be changed. dgp added on 2003-03-19 12:44:40: Logged In: YES user_id=80530 Is this meant to be an implementation of TIP 124? nobody added on 2003-03-19 07:43:40: File Added - 45431: clock_clicks_64bit.patch |
Attachments:
- clock_clicks_64bit.patch [download] added by nobody on 2003-03-19 07:43:40. [details]