Skip to content
Tcl Source Code Artifact [9181bdd170]
Login

Artifact [9181bdd170]

Artifact 9181bdd1704d8d93d6fae8269beafa8a7ab35882:

Wiki page [Time Measurement] by dgp on 2014-10-09 19:08:54.
D 2014-10-09T19:08:54.558
L Time\sMeasurement
P 9cde26025bd64d4ed00f4e314deacce836ca718c
U dgp
W 1178
<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]
  *  [(Initi/Fin)alize]

<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 [(Initi/Fin)alize] 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 cfb7d3f91722acd6b19bd91a3b9ff34d