com.kuka.common
Class StatisticTimer.OneTimeStep

java.lang.Object
  extended by com.kuka.common.StatisticTimer.OneTimeStep
Enclosing class:
StatisticTimer

public final class StatisticTimer.OneTimeStep
extends Object

Inner Sampling Class.

Author:
schreiberg

Method Summary
 void end()
          Finish the timing sample measurement of this very sample.
 long getElapsedTime()
          Return the elapsed time since the start of this time step.
 long getFinalElapsedTime()
          Returns the final elapsed time.
 long getStartTimeInNanoSeconds()
          Returns the start time of this time step in nanoseconds.
 void setMeasuredTimeManually(long startTimeNanoSeconds, long endTimeNanoSeconds)
          Allows to manually define/set the measured time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

end

public void end()
Finish the timing sample measurement of this very sample.


setMeasuredTimeManually

public void setMeasuredTimeManually(long startTimeNanoSeconds,
                                    long endTimeNanoSeconds)
Allows to manually define/set the measured time.

Parameters:
startTimeNanoSeconds - The start time of the sample in nanoseconds.
endTimeNanoSeconds - The end time of the sample in nanoseconds.

getElapsedTime

public long getElapsedTime()
Return the elapsed time since the start of this time step.

Returns:
Elapsed time in milliseconds.

getStartTimeInNanoSeconds

public long getStartTimeInNanoSeconds()
Returns the start time of this time step in nanoseconds.

Returns:
Start time in nanoseconds.

getFinalElapsedTime

public long getFinalElapsedTime()
Returns the final elapsed time.

Returns:
Elapsed time in milliseconds.


Copyright © 2019. All rights reserved.