beetlebug▾
/

info cmdcount

Gives the count of compute units that the interpreter used.

info cmdcount

Description

With no compute limit, gives the count of compute units that the interpreter used since it started. The count goes up as a script runs, so the difference of two calls is the work between them.

Returns

An integer.

Examples

% string is integer [info cmdcount]
1

% set a [info cmdcount]; set x 1; expr {[info cmdcount] > $a}
1

Errors

% info cmdcount x
wrong # args: should be "info cmdcount"
-errorcode TCL WRONGARGS

Differences from Tcl

Facts

Capability
None.
Tcl release
Tcl 9.1 and 8.6.
Since
ztcl 1.0.0-beta.1

See also