lib/cucumber/ast/features.rb in aslakhellesoy-cucumber-0.3.7.1 vs lib/cucumber/ast/features.rb in aslakhellesoy-cucumber-0.3.7.2

- old
+ new

@@ -1,10 +1,12 @@ module Cucumber module Ast class Features include Enumerable + attr_reader :duration + def initialize @features = [] end def each(&proc) @@ -15,12 +17,14 @@ feature.features = self @features << feature end def accept(visitor) + start = Time.now @features.each do |feature| visitor.visit_feature(feature) end + @duration = Time.now - start end end end end \ No newline at end of file