Package org.fest.swing.util
Class TimeoutWatch
java.lang.Object
org.fest.swing.util.TimeoutWatch
Understands a time counter with a timeout.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean(package private) voidstart()static TimeoutWatchstartWatchWithTimeoutOf(long timeout) Creates and starts a newwith the given timeout.TimeoutWatch
-
Field Details
-
timeout
private final long timeout -
startTime
private long startTime
-
-
Constructor Details
-
TimeoutWatch
private TimeoutWatch(long timeout)
-
-
Method Details
-
startWatchWithTimeoutOf
Creates and starts a newwith the given timeout.TimeoutWatch- Parameters:
timeout- the given timeout.- Returns:
- the new timeout watch.
-
start
void start() -
isTimeOut
public boolean isTimeOut()
-