1time(n)                      Tcl Built-In Commands                     time(n)
2
3
4
5______________________________________________________________________________
6

NAME

8       time - Time the execution of a script
9

SYNOPSIS

11       time script ?count?
12_________________________________________________________________
13
14

DESCRIPTION

16       This  command  will  call  the  Tcl interpreter count times to evaluate
17       script (or once if count is not specified).   It  will  then  return  a
18       string of the form
19              503 microseconds per iteration
20       which  indicates  the average amount of time required per iteration, in
21       microseconds.  Time is measured in elapsed time, not CPU time.
22

EXAMPLE

24       Estimate how long it takes for a simple Tcl for  loop  to  count  to  a
25       thousand:
26              time {
27                  for {set i 0} {$i<1000} {incr i} {
28                      # empty body
29                  }
30              }
31
32

SEE ALSO

34       clock(n)
35
36

KEYWORDS

38       script, time
39
40
41
42Tcl                                                                    time(n)
Impressum