1time(n) Tcl Built-In Commands time(n)
2
3
4
5______________________________________________________________________________
6
8 time - Time the execution of a script
9
11 time script ?count?
12______________________________________________________________________________
13
15 This command will call the Tcl interpreter count times to evaluate
16 script (or once if count is not specified). It will then return a
17 string of the form
18
19 503.2 microseconds per iteration
20
21 which indicates the average amount of time required per iteration, in
22 microseconds. Time is measured in elapsed time, not CPU time.
23
25 Estimate how long it takes for a simple Tcl for loop to count to a
26 thousand:
27
28 time {
29 for {set i 0} {$i<1000} {incr i} {
30 # empty body
31 }
32 }
33
35 clock(n)
36
38 script, time
39
40
41
42Tcl time(n)