Class 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 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.