private static void NopListenerTest() { NopListener listener = new NopListener(); OperationTrackingConfig.Listeners.Succeeded.Add(listener); OperationTrackingConfig.Listeners.Failed.Add(listener); OperationTrackingConfig.EnableOperationTracking(); Stopwatch w = new Stopwatch(); long j = 0; w.Start(); for (int i = 0; i < 100000000; i++) { Operation o = Operation.Start(operationName); j += i; o.Complete(); } w.Stop(); Console.WriteLine("Nop listener {0}ms, {1} ticks, j={2}", w.ElapsedMilliseconds, w.ElapsedTicks, j); }