# File lib/as_timer.rb, line 92 def tick if @ticks == @samples @ticks = 0 @current = @samples/(Time.now.to_f - @ref) @min = [@current, @min].min @max = [@current, @max].max @to_s = sprintf("%.2f %.2f %.2f\n", min, current, max) return true end @ref = Time.now.to_f if @ticks == 0 @ticks += 1 return false end