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)
commit488735e4a2d28d868ec93041f95eab1a7234e2ed (patch)
treecc56a92667132923a5a6db8320ad3e2df4a0fd60 /generic/tclCompile.c
parenta3f676461cb88357d3335f2ec0a79cdeaa35eb4f (diff)
parent43d597b30f23c04837758d424f4baa7478b7202a (diff)
downloadtcl-488735e4a2d28d868ec93041f95eab1a7234e2ed.zip
tcl-488735e4a2d28d868ec93041f95eab1a7234e2ed.tar.gz
tcl-488735e4a2d28d868ec93041f95eab1a7234e2ed.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}}
};