diff options
author | Svyatoslav Mishyn <juef@openmailbox.org> | 2015-07-09 08:30:46 +0300 |
---|---|---|
committer | Svyatoslav Mishyn <juef@openmailbox.org> | 2015-07-09 08:30:46 +0300 |
commit | e0f1f32f752885fb1c776c254fbe73412fbda682 (patch) | |
tree | cfe41de325093d5fef06184c74e141cc4c098184 | |
parent | 2ad6cd71d62fdafb2eba06bd47882c9f464489e1 (diff) | |
download | jimtcl-e0f1f32f752885fb1c776c254fbe73412fbda682.zip jimtcl-e0f1f32f752885fb1c776c254fbe73412fbda682.tar.gz jimtcl-e0f1f32f752885fb1c776c254fbe73412fbda682.tar.bz2 |
docs: add desc for "clock {clicks, microseconds, milliseconds}"
-rw-r--r-- | Tcl_shipped.html | 26 | ||||
-rw-r--r-- | jim_tcl.txt | 9 |
2 files changed, 34 insertions, 1 deletions
diff --git a/Tcl_shipped.html b/Tcl_shipped.html index 64520c1..71bbbf5 100644 --- a/Tcl_shipped.html +++ b/Tcl_shipped.html @@ -3526,6 +3526,30 @@ be removed in some applications.</p></div> </p>
</dd>
<dt class="hdlist1">
+<code><strong>clock clicks</strong></code>
+</dt>
+<dd>
+<p>
+ Returns the current time in ‘clicks’.
+</p>
+</dd>
+<dt class="hdlist1">
+<code><strong>clock microseconds</strong></code>
+</dt>
+<dd>
+<p>
+ Returns the current time in microseconds.
+</p>
+</dd>
+<dt class="hdlist1">
+<code><strong>clock milliseconds</strong></code>
+</dt>
+<dd>
+<p>
+ Returns the current time in milliseconds.
+</p>
+</dd>
+<dt class="hdlist1">
<code><strong>clock format</strong> <em>seconds</em> ?<strong>-format</strong> <em>format?</em></code>
</dt>
<dd>
@@ -8242,7 +8266,7 @@ official policies, either expressed or implied, of the Jim Tcl Project.</code></ <div id="footnotes"><hr /></div>
<div id="footer">
<div id="footer-text">
-Last updated 2015-07-08 14:28:37 EEST
+Last updated 2015-07-09 08:26:33 EEST
</div>
</div>
</body>
diff --git a/jim_tcl.txt b/jim_tcl.txt index 6dcee2e..899e230 100644 --- a/jim_tcl.txt +++ b/jim_tcl.txt @@ -1828,6 +1828,15 @@ clock +*clock seconds*+:: Returns the current time as seconds since the epoch. ++*clock clicks*+:: + Returns the current time in `clicks'. + ++*clock microseconds*+:: + Returns the current time in microseconds. + ++*clock milliseconds*+:: + Returns the current time in milliseconds. + +*clock format* 'seconds' ?*-format* 'format?'+:: Format the given time (seconds since the epoch) according to the given format. See strftime(3) for supported formats. |