예제 #1
0
 private void Init(CounterType counterType, string description, CounterMeasureType measureType)
 {
     _stopWatch   = Stopwatch.StartNew();
     _type        = counterType;
     _description = description;
     _measure     = measureType;
     _stopWatch.Start();
 }
예제 #2
0
 public Counter(CounterType counterType = CounterType.Common, string description = null, CounterMeasureType measureType = CounterMeasureType.MilliSec)
 {
     Init(counterType, description, measureType);
 }