tmf.all: use ITmfTimestamp#toNanos when possible
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.os.linux.core / src / org / eclipse / tracecompass / internal / analysis / os / linux / core / kernel / handlers / KernelEventHandlerUtils.java
index 5395c876f2db062f9a67aedf7e6655925d868709..a6ab3f5d4b256888f7d8302e0ab737d46f8fc45a 100644 (file)
@@ -19,7 +19,6 @@ import org.eclipse.tracecompass.statesystem.core.exceptions.TimeRangeException;
 import org.eclipse.tracecompass.statesystem.core.statevalue.ITmfStateValue;
 import org.eclipse.tracecompass.tmf.core.event.ITmfEvent;
 import org.eclipse.tracecompass.tmf.core.event.aspect.TmfCpuAspect;
-import org.eclipse.tracecompass.tmf.core.timestamp.ITmfTimestamp;
 import org.eclipse.tracecompass.tmf.core.trace.TmfTraceUtils;
 
 /**
@@ -74,7 +73,7 @@ public final class KernelEventHandlerUtils {
      * @return the timestamp in long format
      */
     public static long getTimestamp(ITmfEvent event) {
-        return event.getTimestamp().normalize(0, ITmfTimestamp.NANOSECOND_SCALE).getValue();
+        return event.getTimestamp().toNanos();
     }
 
     /**
This page took 0.02756 seconds and 5 git commands to generate.