Skip to content
Tcl Source Code View Ticket
Login

View Ticket

high-res clock

Closed / Fixed218912ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:07:48
OriginalBugID: 2682 RFE
Version: 8.2
SubmitDate: '1999-09-01'
LastModified: '1999-09-20'
Severity: SER
Status: Released
Submitter: techsupp
ChangedBy: hobbs
OS: Linux-Red Hat
Machine: Other
FixedDate: '1999-09-20'
FixedInVersion: 8.3b1
ClosedDate: '2000-10-25'


Name:
Q. Alex Zhao

Extensions:
none

CustomShell:
none

DesiredBehavior:
"clock" should be able to report the current time in milliseconds, in
    addition to seconds (BTW, [clock clicks] won't do because it's
    CPU-dependent and doesn't translate to real-time well).
    
    The main reason for this enhancement is that when I schedule an event
    "after 100", I need to know when exactly the event handler is called,
    whether it's 100 milliseconds after the scheduling, or actually 899
    milliseconds. This is very helpful in trying to adjusting say an
    animation (whose speed is specified in real time seconds/milliseconds)
    to compensate for fast/slow machines and/or heavy/light system loads.
    [clock seconds] is too coarse-grain to distinguish the above two cases.
    A high-res clock can be very useful in many other applications, too.



There will be a new [clock clicks -milliseconds] switch which
guarantees that the return value is grained to the millisecond
(8.3b1). 
-- 09/20/1999 hobbs
welch Closed ticket [218912ffff]. [History diff]2000-10-26 08:31:16
dgp Open ticket [218912ffff]. [History diff]2001-04-19 03:15:27
dgp Closed ticket [218912ffff]. [History diff]2001-04-19 03:15:50
Log in (anonymous is fine) to add a comment.