D 2014-09-05T20:24:05.194 L Time\sMeasurement P 024fbab90cdbd8cbd307abd87ef21021eb90aaee U dgp W 1513

Source Files

* [/finfo?name=generic/tclClock.c|tclClock.c] * [/finfo?name=library/clock.tcl|clock.tcl] * [/finfo?name=unix/tclUnixTime.c|tclUnixTime.c] * [/finfo?name=win/tclWinTime.c|tclWinTime.c]

Public Interface

* Tcl_GetTime * Tcl_SetTimeProc * Tcl_QueryTimeProc

Private Interface

* TclpGetSeconds * TclpGetClicks * TclpGetWideClicks * TclpWideClicksToNanoseconds * TclpGetDate * TclpGmtime * TclpLocaltime

Directly Depends On Public Interface

* [Allocation] * [Threads] * [Event Loops]

Directly Depends On Private Interface of

* [Threads]

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. Z 21d9833db203404453e638d8a59dfd86