198 |
|
long startTime = System.nanoTime(); |
199 |
|
int cycles = 10; |
200 |
|
final CountDownLatch done = new CountDownLatch(cycles); |
201 |
< |
CheckedRunnable task = new CheckedRunnable() { |
201 |
> |
Runnable task = new CheckedRunnable() { |
202 |
|
public void realRun() { done.countDown(); }}; |
203 |
– |
|
203 |
|
ScheduledFuture h = |
204 |
|
p.scheduleAtFixedRate(task, 0, delay, MILLISECONDS); |
205 |
|
done.await(); |
226 |
|
long startTime = System.nanoTime(); |
227 |
|
int cycles = 10; |
228 |
|
final CountDownLatch done = new CountDownLatch(cycles); |
229 |
< |
CheckedRunnable task = new CheckedRunnable() { |
229 |
> |
Runnable task = new CheckedRunnable() { |
230 |
|
public void realRun() { done.countDown(); }}; |
232 |
– |
|
231 |
|
ScheduledFuture h = |
232 |
|
p.scheduleWithFixedDelay(task, 0, delay, MILLISECONDS); |
233 |
|
done.await(); |