Skip to content
Tcl Source Code Artifact [01b72723dc]
Login

Artifact [01b72723dc]

Artifact 01b72723dcf920184b97a6d8335d7c1cb28befc5:

Wiki page [Time Measurement] by dgp on 2014-09-14 20:51:56.
D 2014-09-14T20:51:56.696
L Time\sMeasurement
P 427a1adf6c40cf35b268df42c8ddb65f6760dda8
U dgp
W 1172
<h1>Source Files</h1>
  *  [/finfo?name=unix/tclUnixTime.c|tclUnixTime.c]
  *  [/finfo?name=win/tclWinTime.c|tclWinTime.c]

<h1>Public Interface</h1>
  *  Tcl_GetTime
  *  Tcl_SetTimeProc
  *  Tcl_QueryTimeProc

<h1>Private Interface</h1>
  *  TclpGetSeconds
  *  TclpGetClicks
  *  TclpGetWideClicks
  *  TclpWideClicksToNanoseconds
  *  TclpGetDate
  *  TclpGmtime
  *  TclpLocaltime

<h1>Directly Depends On Public Interface</h1>
  *  [Allocation]
  *  [Threads]
  *  [Event Loops]

<h1>Directly Depends On Private Interface of</h1>
  *  [Threads]
 
<h1>Discussion</h1>

The private routines <b>TclpGetDate</b>, <b>TclpGmtime</b>, <b>TclpLocaltime</b>,
and <b>TclpGetSeconds</b> 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 <b>TclInitTime</b> and<b>TclFinalizeTime</b>
letting this module be spun up and shut down like other modules are.
Z 57a616f20c9155ec756de8451ccc66e7