func NewRateCounter(intrvl time.Duration) *RateCounter {
	return &RateCounter{
		interval: intrvl,
	}
}
Constructs a new RateCounter, for the interval provided
package ratecounter
import "time"
type RateCounter struct {
	counter  Counter
	interval time.Duration
}