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); }
internal ActionStopwatch(string name, LoggingProvider loggingProvider, string requestId) { _stopwatch = StopwatchFactory.GetStopwatch(); Name = name; LoggingProvider = loggingProvider; RequestId = requestId; Start(); }