Пример #1
0
            public void Dispose()
            {
                var stop = DateTime.Now;

                PerfMon.Log("{0}|Stop |{1}|{2}", stop.TimeOfDay, Message, stop - myStart);
                OnFinished(Message, stop - myStart);
            }
Пример #2
0
            public Profiler(string message)
            {
                Message = message;
                myStart = DateTime.Now;

                PerfMon.Log("{0}|Start|{1}", myStart.TimeOfDay, Message);
            }