Beispiel #1
0
        public TimeLogStopwatch(string item)
        {
            this.item = item;
            stopwatch = Stopwatch.StartNew();

            TimeLog.Log(item + " (Start)");
        }
Beispiel #2
0
        public void Dispose()
        {
            stopwatch.Stop();

            TimeLog.Log(item + " (Stop with length " + stopwatch.Elapsed.ToString(@"s\.fff") + ")");
        }