Home | History | Annotate | Line # | Download | only in Ruby
      1 #!./ruby -w
      2 
      3 def func_c
      4   print "Function C\n"
      5   i = 0
      6   while i < 300000
      7      i = i + 1
      8      j = i + 1
      9   end
     10 end
     11 
     12 def func_b
     13   print "Function B\n"
     14   i = 0
     15   while i < 200000
     16      i = i + 1
     17      j = i + 1
     18   end
     19   func_c
     20 end
     21 
     22 def func_a
     23   print "Function A\n"
     24   i = 0
     25   while i < 100000
     26      i = i + 1
     27      j = i + 1
     28   end
     29   func_b
     30 end
     31 
     32 func_a
     33