Skip to content
Tcl Source Code Artifact [9cde26025b]
Login

Artifact [9cde26025b]

Artifact 9cde26025bd64d4ed00f4e314deacce836ca718c:

Wiki page [Time Measurement] by aku on 2014-09-16 20:02:27.
D 2014-09-16T20:02:27.410
L Time\sMeasurement
P 01b72723dcf920184b97a6d8335d7c1cb28befc5
U aku
W 1168
<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] 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 93fe29fa9e8c9bf000c046f7045e483e