diff Implab.Diagnostics.Interactive/InteractiveListener.cs @ 214:9c32ef39b851 v2

Added the time delta column to the interactive trace listener
author cin
date Fri, 14 Apr 2017 15:57:23 +0300
parents cbb0bd8fc0d1
children fe5101083150
line wrap: on
line diff
--- a/Implab.Diagnostics.Interactive/InteractiveListener.cs	Tue Apr 11 01:35:18 2017 +0300
+++ b/Implab.Diagnostics.Interactive/InteractiveListener.cs	Fri Apr 14 15:57:23 2017 +0300
@@ -56,7 +56,7 @@
                 if (m_queue.TryDequeue(out item)) {
                     Interlocked.Decrement(ref m_queueLength);
 
-                    m_syncGuiThread.Send(x => m_form.AddTraceEvent(item),null);
+                    m_syncGuiThread.Post(x => m_form.AddTraceEvent(item),null);
                 } else {
                     m_queueEvent.WaitOne();
                 }
@@ -113,7 +113,8 @@
                 Message = entry.ToString(),
                 Thread = args.ThreadId,
                 Channel = args.Channel.ToString(),
-                Timestamp = Environment.TickCount
+                Timestamp = Environment.TickCount,
+                TimeDelta = args.OperationTimeOffset
             };
 
             Enqueue(item);