i created an eventlog entry:
if (!EventLog.SourceExists("testeventlog"))
EventLog.CreateEventSource("testeventlog","testeventlog");
EventLog.WriteEntry("testeventlog", "testevent");
After this i tried to read out the time generated:
eLog = new EventLog("testeventlog");
foreach (EventLogEntry entry in eLog.Entries)
{
entry.TimeGenerated.ToString("MM/dd/yyyy hh:mm:ss.fff tt");
}
My Problem is that the Milliseconds are 0 every time. Is there any possibility to write an eventlogentry in which the milliseconds are saved, too?