aboutsummaryrefslogtreecommitdiff
path: root/Code/Tcl/func_slow.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'Code/Tcl/func_slow.tcl')
-rw-r--r--Code/Tcl/func_slow.tcl29
1 files changed, 29 insertions, 0 deletions
diff --git a/Code/Tcl/func_slow.tcl b/Code/Tcl/func_slow.tcl
new file mode 100644
index 000000000000..d4fc59894680
--- /dev/null
+++ b/Code/Tcl/func_slow.tcl
@@ -0,0 +1,29 @@
+#!./tclsh
+
+proc func_c {} {
+ puts "Function C"
+ set i 0
+ while {$i < 300000} {
+ set i [expr $i + 1]
+ }
+}
+
+proc func_b {} {
+ puts "Function B"
+ set i 0
+ while {$i < 200000} {
+ set i [expr $i + 1]
+ }
+ func_c
+}
+
+proc func_a {} {
+ puts "Function A"
+ set i 0
+ while {$i < 100000} {
+ set i [expr $i + 1]
+ }
+ func_b
+}
+
+func_a