Skip to content
Tcl Source Code Update of ”Time Measurement”
Login

Update of ”Time Measurement”

Overview

Artifact ID: 427a1adf6c40cf35b268df42c8ddb65f6760dda8
Page Name:Time Measurement
Date: 2014-09-05 20:52:37
Original User: dgp
Parent: aed62e3823a3e6d2bcf728dcf052434fb5ad4995 (diff)
Next 01b72723dcf920184b97a6d8335d7c1cb28befc5
Content

Source Files

Public Interface

Private Interface

Directly Depends On Public Interface

Directly Depends On Private Interface of

Discussion

It's best to think of this as two modules rather than one. The tclClock.c and clock.tcl files implement the builtin [clock] command. They depend on pretty much the entire core Tcl infrastructure, as well as the bundled package msgcat. The remaining files are about providing a common interface to platform-specific timekeeping facilities. Those are much more self-contained, and needed by more other modules. The data above refers to just this lower level half module.

The private routines TclpGetDate, TclpGmtime, TclpLocaltime, and TclpGetSeconds are not called within Tcl, and continue to exist for the sake of entries in the private stub table. They are candidates for elimination. If they were eliminated, the dependence on Allocation and would also go away.

The dependence on Event Loops and private aspects of Threads can be eliminated by creating two new private interfaces TclInitTime andTclFinalizeTime letting this module be spun up and shut down like other modules are.