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) void
start()
static TimeoutWatch
startWatchWithTimeoutOf
(long timeout) Creates and starts a new
with 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 new
with the given timeout.TimeoutWatch
- Parameters:
timeout
- the given timeout.- Returns:
- the new timeout watch.
-
start
void start() -
isTimeOut
public boolean isTimeOut()
-