diff options
author | Kevin B Kenny <kennykb@acm.org> | 2017-03-15 02:40:56 (GMT) |
---|---|---|
committer | Kevin B Kenny <kennykb@acm.org> | 2017-03-15 02:40:56 (GMT) |
commit | bbe4542d364121720a36d12051e45c8c42cf25d9 (patch) | |
tree | cc56a92667132923a5a6db8320ad3e2df4a0fd60 /generic/tclCompile.c | |
parent | bbf9191cdf2558bb4e7571a1cf57886d79826c7e (diff) | |
parent | 89b08916f5e330151206c6ab42468f957bfd41af (diff) | |
download | tcl-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.c | 5 |
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}} }; |