private void m_hostQueue_ObjectDequeued(IQueue hostQueue, object serviceItem) { DateTime entry = (DateTime)m_occupants[serviceItem]; m_occupants.Remove(serviceItem); TimeSpan duration = m_model.Executive.Now - entry; //_Debug.WriteLine(m_model.Executive.Now + " : " + this.Name + " dequeueing " + serviceItem + " after " + duration + ". It currently has " + hostQueue.Count + " occupants."); m_data.Add(duration); m_hist = null; }
public void Reset() { m_data.Clear(); m_hist = null; }