Class TimeoutWatch

java.lang.Object
org.fest.swing.util.TimeoutWatch

public final class TimeoutWatch extends Object
Understands a time counter with a timeout.
  • Field Details

    • timeout

      private final long timeout
    • startTime

      private long startTime
  • Constructor Details

    • TimeoutWatch

      private TimeoutWatch(long timeout)
  • Method Details

    • startWatchWithTimeoutOf

      public static TimeoutWatch startWatchWithTimeoutOf(long timeout)
      Creates and starts a new TimeoutWatch with the given timeout.
      Parameters:
      timeout - the given timeout.
      Returns:
      the new timeout watch.
    • start

      void start()
    • isTimeOut

      public boolean isTimeOut()