public void CounterExample(ILogStream log) { log.IncrementCounter(_totalRequests); log.IncrementCounter(_activeRequests); Stopwatch timer = Stopwatch.StartNew(); // do additional work here SubComponentCounterExample(log); // do additional work here log.IncrementCounterBy(_processTimeBL, timer.ElapsedMilliseconds); log.DecrementCounter(_activeRequests); }