def stop( value )
      if @current_interval.running? then
        d = @current_interval.stop
        @timed_stats.update( d )
        @current_interval = Interval.new
        @value_stats.update( value )

        # update the lenght of time we have been sampling
        @sampling_delta = @sampling_start_interval.duration_so_far

        return d
      end
      return false
    end
def stop( value )
      if @current_interval.running? then
        d = @current_interval.stop
        @timed_stats.update( d )
        @current_interval = Interval.new
        @value_stats.update( value )

        # update the lenght of time we have been sampling
        @sampling_delta = @sampling_start_interval.duration_so_far

        return d
      end
      return false
    end
:call-seq:
   timed_value_metric.stop( count ) -> Float or nil

 Stop the current metric.  The +count+ parameter must be a
 value to update to the _value_ portion of the TimedValueMetric.  Generally
 this is probably the number of things that were operated upon since
 +start+ was invoked.

 This updates both the +value_stats+ and +timed_stats+ stats and removes
 the current interval. If the metric is stopped then the duration of the
 last Interval is returned.  If the metric was already stopped before this
 call, then false is returned and no stats are updated.