/// <inheritdoc />
            public void Dispose()
            {
                long elapsed = System.Diagnostics.Stopwatch.GetTimestamp() - m_startTimestamp;

                if (elapsed > 0)
                {
                    m_collection.AddToStopwatchInternal(m_id, elapsed);
                }

                m_collection.AddToCounterInternal(m_id, 1);
            }
 /// <summary>
 /// Increments a value of a current counter by 1.
 /// </summary>
 public void Increment()
 {
     m_collection.AddToCounterInternal(m_id, 1);
 }
 /// <summary>
 /// Adds to the counter with the given zero-based ID.
 /// </summary>
 internal void AddToCounterInternal(ushort counterId, long add)
 {
     AddToCounter(m_counters, counterId, add);
     m_parent?.AddToCounterInternal(counterId, add);
 }