예제 #1
0
 /// <summary>
 /// Gets elapsed time by tag.
 /// </summary>
 public TimeSpan GetElapsedTime(StringId tag, PipCountersByGroup counter) => CountersByGroup.TryGetValue(tag, out var pipCounter) ? pipCounter.GetElapsedTime(counter) : TimeSpan.Zero;
예제 #2
0
 /// <summary>
 /// Gets counter value by tag.
 /// </summary>
 public long GetCounterValue(StringId tag, PipCountersByGroup counter) => CountersByGroup.TryGetValue(tag, out var pipCounter) ? pipCounter.GetCounterValue(counter) : 0;