/// ----------------------------------------------------------------- /// <summary> /// </summary> /// ----------------------------------------------------------------- private void RecordCompletedOperation(RequestBase req) { lock (m_dispatcherStats) { String tname = req.GetType().Name; DispatcherStat stat = null; if (!m_dispatcherStats.TryGetValue(tname, out stat)) { stat = new DispatcherStat(); m_dispatcherStats[tname] = stat; } UInt64 tdiff = (UInt64)Util.EnvironmentTickCountSubtract(req.RequestEntryTime); stat.TotalTime += tdiff; stat.TotalRequests++; } }
/// ----------------------------------------------------------------- /// <summary> /// </summary> /// ----------------------------------------------------------------- private void RecordCompletedOperation(RequestBase req) { lock (m_dispatcherStats) { String tname = req.GetType().Name; DispatcherStat stat = null; if (! m_dispatcherStats.TryGetValue(tname, out stat)) { stat = new DispatcherStat(); m_dispatcherStats[tname] = stat; } UInt64 tdiff = (UInt64)Util.EnvironmentTickCountSubtract(req.RequestEntryTime); stat.TotalTime += tdiff; stat.TotalRequests++; } }