public TimeLogStopwatch(string item) { this.item = item; stopwatch = Stopwatch.StartNew(); TimeLog.Log(item + " (Start)"); }
public void Dispose() { stopwatch.Stop(); TimeLog.Log(item + " (Stop with length " + stopwatch.Elapsed.ToString(@"s\.fff") + ")"); }