Beispiel #1
0
        public void Compute(int range)
        {
            _stopwatch.Start();
            _proxee.Compute(range);
            _stopwatch.Stop();

            Console.WriteLine($"Execution time was {_stopwatch.Elapsed}");
        }
Beispiel #2
0
 public virtual void Compute(int range) => _decoratee.Compute(range);