-cdtime_t latency_counter_get_start_time (const latency_counter_t *lc) /* {{{ */
-{
- if (lc == NULL)
- return (0);
-
- return lc->start_time;
-} /* }}} cdtime_t latency_counter_get_start_time */
-
-/*
- * NAME
- * latency_counter_get_rate(counter,lower,upper,now)
- *
- * DESCRIPTION
- * Calculates rate of latency values fall within requested interval.
- * Interval specified as [lower,upper] (including boundaries).
- * When upper value is equal to 0 then interval is [lower, infinity).
- */
-
-double latency_counter_get_rate (const latency_counter_t *lc, /* {{{ */
- cdtime_t lower, cdtime_t upper, const cdtime_t now)
-{
- cdtime_t lower_bin;
- cdtime_t upper_bin;
- double p;
- double sum = 0;
- size_t i;
-
+double latency_counter_get_rate(const latency_counter_t *lc, /* {{{ */
+ cdtime_t lower, cdtime_t upper,
+ const cdtime_t now) {