Struct.new :label, :real, :cstime, :cutime, :stime, :utime, :total
Similar to Benchmark::Tms with the addition of standard deviation, mean, and total, for each of the data times.
tms = Benelux::Tms.new tms.real.sd # standard deviation tms.utime.mean # mean value tms.total.n # number of data points
# File lib/benelux.rb, line 208 def inspect fields = members.collect { |f| next unless Stats::Calculator === self.send(f) '%s=%.2f@%.2f' % [f, self.send(f).mean, self.send(f).sd] }.compact args = [self.class.to_s, self.hexoid, samples, fields.join(' ')] '#<%s:%s samples=%d %s>' % args end
Generated with the Darkfish Rdoc Generator 2.