internal ActionStopwatch(string name, LoggingProvider loggingProvider)
 {
     _stopwatch      = StopwatchFactory.GetStopwatch();
     Name            = name;
     LoggingProvider = loggingProvider;
     Start();
 }
        public static IStopwatch StartNew()
        {
            var stopwatch = StopwatchFactory.GetStopwatch();

            stopwatch.Start();
            return(stopwatch);
        }
Beispiel #3
0
 internal ActionStopwatch(string name, LoggingProvider loggingProvider, string requestId)
 {
     _stopwatch      = StopwatchFactory.GetStopwatch();
     Name            = name;
     LoggingProvider = loggingProvider;
     RequestId       = requestId;
     Start();
 }