Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2003-04-14
01:05 • Closed ticket [705988ffff]: 64bit clock clicks plus 7 other changes artifact: 83f4cda499 user: kennykb
2003-03-19
12:58 • Ticket [705988ffff]: 4 changes artifact: 286a7b8848 user: samoc
12:44 • Ticket [705988ffff]: 4 changes artifact: 77b763d5c8 user: dgp
07:43 • Ticket [705988ffff]: 4 changes artifact: 7ce1e9fbe4 user: nobody
07:43 • Add attachment clock_clicks_64bit.patch to ticket [705988ffffffffff|705... artifact: d882cdf5d0 user: nobody
00:43 • New ticket [705988ffff] 64bit clock clicks. artifact: 4f551f9c58 user: nobody

64bit clock clicks

Closed / Accepted705988ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2003-03-19 00:43:39
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]
nobodyplain2003-03-19 07:43:40
File Added - 45431: clock_clicks_64bit.patch
dgpplain2003-03-19 12:44:40
Logged In: YES 
user_id=80530

Is this meant to be an implementation of TIP 124?
samocplain2003-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.
kennykbplain2003-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.
Log in (anonymous is fine) to add a comment.

Attachments: