Faster StopWatchTest.testLang315()
This commit is contained in:
parent
6dd2addd4b
commit
695986b2b9
|
@ -278,11 +278,11 @@ public class StopWatchTest extends AbstractLangTest {
|
||||||
@Test
|
@Test
|
||||||
public void testLang315() throws InterruptedException {
|
public void testLang315() throws InterruptedException {
|
||||||
final StopWatch watch = StopWatch.createStarted();
|
final StopWatch watch = StopWatch.createStarted();
|
||||||
sleep(MILLIS_200);
|
sleep(TWO_MILLISECOND);
|
||||||
watch.suspend();
|
watch.suspend();
|
||||||
final long suspendTime = watch.getTime();
|
final long suspendTime = watch.getTime();
|
||||||
final Duration suspendDuration = watch.getDuration();
|
final Duration suspendDuration = watch.getDuration();
|
||||||
sleep(MILLIS_200);
|
sleep(TWO_MILLISECOND);
|
||||||
watch.stop();
|
watch.stop();
|
||||||
final long totalTime = watch.getTime();
|
final long totalTime = watch.getTime();
|
||||||
final Duration totalDuration = watch.getDuration();
|
final Duration totalDuration = watch.getDuration();
|
||||||
|
|
Loading…
Reference in New Issue