rate overloads

Synopses

Declared in <folly/stats/BucketedTimeSeries.h>

Return the sum divided by the elapsed time.

template<
    typename ReturnType = double,
    typename Interval = Duration>
ReturnType
rate() const;

Estimate the rate during the specified time period.

template<
    typename ReturnType = double,
    typename Interval = Duration>
ReturnType
rate(
    TimePoint start,
    TimePoint end) const;

Return Value

  • The sum divided by the elapsed time.

  • The estimated sum per interval during the period.

Parameters

Name

Description

start

The inclusive start of the time period.

end

The exclusive end of the time period.

Created with MrDocs