lib/rgot/b.rb in rgot-0.0.2 vs lib/rgot/b.rb in rgot-0.0.3

- old
+ new

@@ -7,11 +7,10 @@ @module = benchmark_module @name = name @opts = opts @benchtime = @opts.fetch(:benchtime, 1).to_f @timer_on = false - @start = Rgot.now @duration = 0 @module.extend @module end def start_timer @@ -35,10 +34,9 @@ @duration = 0 end def run n = 1 - a = Rgot.now run_n(n) while !failed? && @duration < @benchtime && @n < 1e9 if @duration < (@benchtime / 100.0) n *= 100 elsif @duration < (@benchtime / 10.0)