public static StopwatchLog StartNew(ILogger logger) { StopwatchLog sw = new StopwatchLog(logger); sw.Start(); return(sw); }
public TimeSpanBlock(string operationName, ILogger logger, LogLevel logLevel = LogLevel.Information) { _sw = StopwatchLog.StartNew(logger); _operationName = operationName; _logLevel = logLevel; }