1

I recently started using ETW with SLAB and noticed that time stamps for events are a bit off. Is there any reason that time stamps outputted from EventSource.WriteEvent would be 10 minutes earlier than when the event actually occurred? This is not a big deal, but I am curious why this might be happening.

Example Code:

[Event(100, Level = EventLevel.Informational)]
public void Info(string message)
{
       if (this.IsEnabled())
       {
           this.WriteEvent(100, message);
       }
}

The output might look like this:

EventId : 100, Level : Informational, Message : Method DocumentODSRepository.GetDocuments entered., Payload : [methodName : DocumentODSRepository.GetDocuments] , EventName : MethodEnteredInfo, Timestamp : 2014-06-25T20:38:18.8503447Z

However, the Timestamp should be 2014-06-25T20:48:18.8503447Z.

Cameron Tinker
  • 9,634
  • 10
  • 46
  • 85
  • capture the events with PerfView (http://www.microsoft.com/en-us/download/details.aspx?id=28567, http://blogs.msdn.com/b/vancem/archive/2012/07/09/logging-your-own-etw-events-in-c-system-diagnostics-tracing-eventsource.aspx). Do you also see the wrongs time in the generated ETL file? – magicandre1981 Jun 28 '14 at 05:37
  • have you tried this? Does WPA/xperfview also show the wrong timestamp of the event after opening the ETL file? – magicandre1981 Jul 13 '14 at 07:40
  • Did you end up solving this? I have an ETL file with CreateTimes which are about 15 minutes earlier than when the events actually happened... – Dina Oct 30 '16 at 07:52
  • @Dina, no, sadly I didn't find a solution to this issue. Unfortunately, I no longer with with ETW and SLAB on a daily basis. – Cameron Tinker Oct 30 '16 at 22:10

0 Answers0