Package com.openinventor.inventor
Class SbElapsedTime
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.SbElapsedTime
-
public class SbElapsedTime extends Inventor
Class for measuring elapsed time with high resolution. This measures elapsed time in seconds. It uses the highest resolution timer available on the system, to allow measuring very short intervals. There is no guarantee the timer resolution will be better thanSbTime
(which is used if no better method is available).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SbElapsedTime()
Constructor (initializes timer)SbElapsedTime(SbElapsedTime copyFrom)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getElapsed()
Gets elapsed time in seconds.SbTime
getElapsedTime()
Gets elapsed time.void
reset()
Resets timer.void
setValue(SbElapsedTime copyFrom)
static SbElapsedTime[]
toArray(long nativeArray, long length)
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Constructor Detail
-
SbElapsedTime
public SbElapsedTime(SbElapsedTime copyFrom)
-
SbElapsedTime
public SbElapsedTime()
Constructor (initializes timer)
-
-
Method Detail
-
toArray
public static SbElapsedTime[] toArray(long nativeArray, long length)
-
getElapsed
public double getElapsed()
Gets elapsed time in seconds.
-
getElapsedTime
public SbTime getElapsedTime()
Gets elapsed time.
-
reset
public void reset()
Resets timer.
-
setValue
public void setValue(SbElapsedTime copyFrom)
-
-