/// <summary> /// Clears all recorded values /// </summary> public void Clear() { _count.Set(0); _m1Rate.Clear(); _m5Rate.Clear(); _m15Rate.Clear(); _startTime = DateTime.UtcNow.Ticks; _timer.Change(Interval, Interval); }
/// <summary> /// Clears all recorded values /// </summary> public void Clear() { _count.Set(0); var timestamp = Timer.ElapsedNanoseconds; _m1Rate.Clear(timestamp); _m5Rate.Clear(timestamp); _m15Rate.Clear(timestamp); _startTime = DateTime.UtcNow.Ticks; }