Package com.openinventor.inventor
Class SbElapsedTime
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.SbElapsedTime
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 than
SbTime
(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 -
Method Summary
Modifier and TypeMethodDescriptiondouble
Gets elapsed time in seconds.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 Details
-
SbElapsedTime
-
SbElapsedTime
public SbElapsedTime()Constructor (initializes timer)
-
-
Method Details
-
toArray
-
getElapsed
public double getElapsed()Gets elapsed time in seconds. -
getElapsedTime
Gets elapsed time. -
reset
public void reset()Resets timer. -
setValue
-