Dump this Stats object with an optional additional message.
Calculates and returns the mean for the data passed so far.
Resets the internal counters so you can start sampling again.
Adds a sampling to the calculations.
Calculates the standard deviation of the data so far.
Adds a time delta between now and the last time you called this. This will give you the average time between two activities.
An example is:
t = Stats.new("do_stuff") 10000.times { do_stuff(); t.tick } t.dump("time")
Returns a common display (used by dump)
[Validate]