tmf: Fix time unit of time stamp in TmfTrace.createTimestamp()
authorPatrick Tasse <patrick.tasse@gmail.com>
Thu, 21 Aug 2014 20:35:14 +0000 (16:35 -0400)
committerPatrick Tasse <patrick.tasse@gmail.com>
Wed, 27 Aug 2014 21:24:39 +0000 (17:24 -0400)
Change-Id: If0dc752f3d09dd447a70967909a68e68f6beaddc
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/32113
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/ITmfTrace.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/TmfTrace.java

index 8632c6af6a631dd530d51faf4a1d242585513403..0be8abb4d1651897e0cf2108368ce058fdf5d6eb 100644 (file)
@@ -444,7 +444,7 @@ public interface ITmfTrace extends ITmfEventProvider {
      * Creates a timestamp for this trace, using the transformation formula
      *
      * @param ts
-     *            The time in long with which to create the timestamp
+     *            The time in nanoseconds with which to create the timestamp
      * @return The new timestamp
      * @since 3.0
      */
index 7282bf00a1d6174bbd0cc420f47d30a99038ac88..54228e13340926dcd3a1728e68832d716aeec622 100644 (file)
@@ -54,6 +54,7 @@ import org.eclipse.linuxtools.tmf.core.signal.TmfTraceUpdatedSignal;
 import org.eclipse.linuxtools.tmf.core.synchronization.ITmfTimestampTransform;
 import org.eclipse.linuxtools.tmf.core.synchronization.TimestampTransformFactory;
 import org.eclipse.linuxtools.tmf.core.timestamp.ITmfTimestamp;
+import org.eclipse.linuxtools.tmf.core.timestamp.TmfNanoTimestamp;
 import org.eclipse.linuxtools.tmf.core.timestamp.TmfTimeRange;
 import org.eclipse.linuxtools.tmf.core.timestamp.TmfTimestamp;
 import org.eclipse.linuxtools.tmf.core.trace.indexer.ITmfTraceIndexer;
@@ -844,7 +845,7 @@ public abstract class TmfTrace extends TmfEventProvider implements ITmfTrace, IT
      */
     @Override
     public ITmfTimestamp createTimestamp(long ts) {
-        return new TmfTimestamp(getTimestampTransform().transform(ts));
+        return new TmfNanoTimestamp(getTimestampTransform().transform(ts));
     }
 
     // ------------------------------------------------------------------------
This page took 0.027735 seconds and 5 git commands to generate.