Class WakeupOnElapsedTime


  • public final class WakeupOnElapsedTime
    extends WakeupCriterion
    Class specifying a wakeup when a specific number of milliseconds have elapsed.
    • Constructor Detail

      • WakeupOnElapsedTime

        public WakeupOnElapsedTime​(long milliseconds)
        Constructs a new WakeupOnElapsedTime criterion.
        Parameters:
        milliseconds - the number of milliseconds to the wakeup. A value of zero or less will cause an IllegalArgumentException to be thrown.
    • Method Detail

      • getElapsedFrameTime

        public long getElapsedFrameTime()
        Retrieve the WakeupCriterion's elapsed time value that was used when constructing this object.
        Returns:
        the elapsed time specified when constructing this object