<OutputColumn name="type"/>
</Definition>
<Definition name="events">
-<TimeStampOutputFormat>T</TimeStampOutputFormat>
+<TimeStampOutputFormat>Tn</TimeStampOutputFormat>
<InputElement name="trace">
<InputElement logentry="true" name="event">
<InputData action="0" format="" name="Ignore"/>
<InputData action="0" format="" name="Message"/>
</Attribute>
<Attribute name="timestamp">
-<InputData action="0" format="T" name="Time Stamp"/>
+<InputData action="0" format="Tn" name="Time Stamp"/>
</Attribute>
<InputElement name="field">
<InputData action="0" format="" name="Ignore"/>
import org.eclipse.tracecompass.tmf.core.parsers.custom.CustomXmlTraceDefinition;
import org.eclipse.tracecompass.tmf.core.signal.TmfSignalManager;
import org.eclipse.tracecompass.tmf.core.timestamp.ITmfTimestamp;
-import org.eclipse.tracecompass.tmf.core.timestamp.TmfTimestamp;
import org.eclipse.tracecompass.tmf.core.trace.ITmfContext;
import org.eclipse.tracecompass.tmf.core.trace.TmfContext;
import org.eclipse.tracecompass.tmf.core.trace.TmfTrace;
private static final String TYPE_LONG = "long"; //$NON-NLS-1$
private static final String ASPECT_CPU = "cpu";
- private static final Long SECONDS_TO_NS = 1000000000L;
-
private final CustomXmlTraceDefinition fDefinition;
private CustomXmlTrace fTrace;
* original is in second and we need to convert it. We should do that at
* the source when it is supported
*/
- ITmfTimestamp timestamp = TmfTimestamp.fromNanos(event.getTimestamp().getValue() / SECONDS_TO_NS);
- TmfEvent newEvent = new TmfEvent(this, ITmfContext.UNKNOWN_RANK, timestamp, eventType, eventFields);
+ TmfEvent newEvent = new TmfEvent(this, ITmfContext.UNKNOWN_RANK, event.getTimestamp(), eventType, eventFields);
updateAttributes(savedContext, event);
return newEvent;
}
editor = fBot.editorByTitle(fLocation.getName());
eventsTableBot = editor.bot().table();
timestamp = eventsTableBot.cell(1, 1);
- assertEquals("19:00:00.000 000 099", timestamp);
+ assertEquals("19:01:39.000 000 000", timestamp);
SWTBotUtils.deleteProject(PROJET_NAME, fBot);
}