summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.c
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2017-03-15 02:40:56 (GMT)
committerKevin B Kenny <kennykb@acm.org>2017-03-15 02:40:56 (GMT)
commitbbe4542d364121720a36d12051e45c8c42cf25d9 (patch)
treecc56a92667132923a5a6db8320ad3e2df4a0fd60 /generic/tclCompile.c
parentbbf9191cdf2558bb4e7571a1cf57886d79826c7e (diff)
parent89b08916f5e330151206c6ab42468f957bfd41af (diff)
downloadtcl-bbe4542d364121720a36d12051e45c8c42cf25d9.zip
tcl-bbe4542d364121720a36d12051e45c8c42cf25d9.tar.gz
tcl-bbe4542d364121720a36d12051e45c8c42cf25d9.tar.bz2
Compile [clock clicks], [clock microseconds], [clock milliseconds] and [clock seconds].
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r--generic/tclCompile.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index 7e6a5af..b5de230 100644
--- a/generic/tclCompile.c
+++ b/generic/tclCompile.c
@@ -654,6 +654,11 @@ InstructionDesc const tclInstructionTable[] = {
/* Lappend list to general variable.
* Stack: ... varName list => ... listVarContents */
+ {"clockRead", 2, +1, 1, {OPERAND_UINT1}},
+ /* Read clock out to the stack. Operand is which clock to read
+ * 0=clicks, 1=microseconds, 2=milliseconds, 3=seconds.
+ * Stack: ... => ... time */
+
{NULL, 0, 0, 0, {OPERAND_NONE}}
};