private PerSecondCounterMetric(string eventType, TimeUnit rateUnit) { _ewma = EWMA.OneSecondEWMA(Timer.ElapsedNanoseconds); Timer.Tick += TimeElapsed; _eventType = eventType; _rateUnit = rateUnit; }