ruby-win32/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel/stats.rb
# 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")
#
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.


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 .
def tick
      now = Time.now
      sample(now - @last_time)
      @last_time = now
    end
def tick now = Time . now sample ( now - @last_time ) @last_time = now end
Adds a time delta between now and the last time you called this.
Adds a time delta between now and the last time you called this .