public static IDisposable Push(string name) { var temp = Current; Current = new StopwatchLogScope(name); Current.Parent = temp; return(new DisposableScope()); }
public static IDisposable BeginScope(string name) { return(StopwatchLogScope.Push(name)); }