summaryrefslogtreecommitdiffstats
path: root/generic/tclBasic.c
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2017-01-09 19:09:49 (GMT)
committersebres <sebres@users.sourceforge.net>2017-01-09 19:09:49 (GMT)
commitd886a33b76f26c9aa0866cd569f4b15bc2a68402 (patch)
treeb29fc616d3e74b8ad3c744776753c24c805d3526 /generic/tclBasic.c
parentfc84850b75bc0741998145b52bbe2269c2d76e8d (diff)
downloadtcl-d886a33b76f26c9aa0866cd569f4b15bc2a68402.zip
tcl-d886a33b76f26c9aa0866cd569f4b15bc2a68402.tar.gz
tcl-d886a33b76f26c9aa0866cd569f4b15bc2a68402.tar.bz2
New performance measurement routine "timerate" in opposition to "time" the execution
limited by fixed time (in milliseconds) instead of repetition count (more precise results, to prevent very long execution time it is no more necessary to estimate repetition count) Syntax: timerate ?-direct? ?-calibrate? ?-overhead double? command ?time?
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r--generic/tclBasic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index 81b3513..dec26b4 100644
--- a/generic/tclBasic.c
+++ b/generic/tclBasic.c
@@ -286,6 +286,7 @@ static const CmdInfo builtInCmds[] = {
{"source", Tcl_SourceObjCmd, NULL, TclNRSourceObjCmd, 0},
{"tell", Tcl_TellObjCmd, NULL, NULL, CMD_IS_SAFE},
{"time", Tcl_TimeObjCmd, NULL, NULL, CMD_IS_SAFE},
+ {"timerate", Tcl_TimeRateObjCmd, NULL, NULL, CMD_IS_SAFE},
{"unload", Tcl_UnloadObjCmd, NULL, NULL, 0},
{"update", Tcl_UpdateObjCmd, NULL, NULL, CMD_IS_SAFE},
{"vwait", Tcl_VwaitObjCmd, NULL, NULL, CMD_IS_SAFE},