ctf: Fix clock-related Javadoc in CTFTrace
authorPatrick Tasse <patrick.tasse@gmail.com>
Thu, 10 Nov 2016 14:57:48 +0000 (09:57 -0500)
committerPatrick Tasse <patrick.tasse@gmail.com>
Fri, 11 Nov 2016 13:08:48 +0000 (08:08 -0500)
Change-Id: Ibde44bbf044424dcf32981eb9e4dc7557f6f1925
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/84821
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
ctf/org.eclipse.tracecompass.ctf.core/src/org/eclipse/tracecompass/ctf/core/trace/CTFTrace.java

index 5053c34dedd64bb64d07fda17cb1c2cb96c85e1c..2f09e7d62039489abbb56766c78518aa0cc6243d 100644 (file)
@@ -676,9 +676,9 @@ public class CTFTrace implements IDefinitionScope {
     }
 
     /**
-     * gets the time offset of a clock with respect to UTC in nanoseconds
+     * Gets the clock offset with respect to POSIX.1 Epoch in cycles
      *
-     * @return the time offset of a clock with respect to UTC in nanoseconds
+     * @return the clock offset with respect to POSIX.1 Epoch in cycles
      */
     public final long getOffset() {
         if (getClock() == null) {
@@ -688,9 +688,9 @@ public class CTFTrace implements IDefinitionScope {
     }
 
     /**
-     * gets the time offset of a clock with respect to UTC in nanoseconds
+     * Gets the time scale in nanoseconds/cycle
      *
-     * @return the time offset of a clock with respect to UTC in nanoseconds
+     * @return the time scale in nanoseconds/cycle
      */
     private double getTimeScale() {
         if (getClock() == null) {
@@ -742,9 +742,9 @@ public class CTFTrace implements IDefinitionScope {
     }
 
     /**
-     * the inverse clock for returning to a scale.
+     * Gets the inverse time scale in cycles/nanosecond
      *
-     * @return 1.0 / scale
+     * @return the inverse time scale in cycles/nanosecond
      */
     private double getInverseTimeScale() {
         if (getClock() == null) {
@@ -754,9 +754,11 @@ public class CTFTrace implements IDefinitionScope {
     }
 
     /**
+     * Gets the clock cycles count for a specified time
+     *
      * @param cycles
-     *            clock cycles since boot
-     * @return time in nanoseconds UTC offset
+     *            clock cycles relative to clock offset
+     * @return time in nanoseconds relative to POSIX.1 Epoch
      */
     public long timestampCyclesToNanos(long cycles) {
         long retVal = cycles + getOffset();
@@ -771,9 +773,11 @@ public class CTFTrace implements IDefinitionScope {
     }
 
     /**
+     * Gets the time for a specified clock cycle count
+     *
      * @param nanos
-     *            time in nanoseconds UTC offset
-     * @return clock cycles since boot.
+     *            time in nanoseconds relative to POSIX.1 Epoch
+     * @return clock cycles relative to clock offset
      */
     public long timestampNanoToCycles(long nanos) {
         long retVal;
This page took 0.026656 seconds and 5 git commands to generate.