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 than SbTime (which is used if no better method is available).
  • Constructor Details

    • SbElapsedTime

      public SbElapsedTime(SbElapsedTime copyFrom)
    • SbElapsedTime

      public SbElapsedTime()
      Constructor (initializes timer)
  • Method Details

    • 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)