Sha256: 529b83862d2ce45ca599b54fe00b466a7c3b149f705a8c91a2d2af43dab2706b
Contents?: true
Size: 480 Bytes
Versions: 13
Compression:
Stored size: 480 Bytes
Contents
require 'rubyperf' module Perf class Measure attr_accessor :path attr_accessor :count attr_accessor :time attr_accessor :measuring def initialize(measure_path) @path = measure_path @count = 0 @time = Benchmark::Tms.new @measuring = 0 end def measuring? @measuring>0 end def merge(m) @count += m.count @time += m.time @measuring += m.measuring end end end
Version data entries
13 entries across 13 versions & 1 rubygems