Skip to content
Tcl Source Code Artifact [2195bfe26d]
Login

Artifact [2195bfe26d]

Artifact 2195bfe26ddf8415753deb7fd74d3611d3fbdb37:

Wiki page [Time Measurement] by dgp on 2014-09-05 18:51:12.
D 2014-09-05T18:51:12.843
L Time\sMeasurement
P 698c6eb4a179dd75da9a719e2b6f45c8e846fca3
U dgp
W 1124
<h1>Source Files</h1>
  *  [/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]

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

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

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

<h1>Directly Depends On Private Interface of</h1>
  *  <i>None</i>
 
<h1>Discussion</h1>

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 and 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.
Z f0b8aaa0abc5e9a8b7de7caddbeecc26