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

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