tmf.core: Introduce ITmfTimestamp#toNanos
authorMatthew Khouzam <matthew.khouzam@ericsson.com>
Mon, 22 Feb 2016 19:55:52 +0000 (14:55 -0500)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Fri, 26 Feb 2016 02:49:22 +0000 (21:49 -0500)
commit42e8594025de9059671ed1c26d3ea6f4ec89dcbe
treed5cfac9473127d8662b68bfd76173f6d3215b8cb
parent4bcdb26a448facda4c902b502f036b01c3ff8f10
tmf.core: Introduce ITmfTimestamp#toNanos

This method can be used to quickly convert an ITmfTimestamp to a
long using nanoseconds. This should reduce code re-use but also
accelerate the fast path as it saves object creation and avoid
errors in copy pasted code chunks.

Change-Id: I402c419fe2d579cf5e7e07b258665adbf8af8f8b
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/67090
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
tmf/org.eclipse.tracecompass.tmf.core/src/org/eclipse/tracecompass/tmf/core/timestamp/ITmfTimestamp.java
tmf/org.eclipse.tracecompass.tmf.core/src/org/eclipse/tracecompass/tmf/core/timestamp/TmfNanoTimestamp.java
This page took 0.026198 seconds and 5 git commands to generate.