Faster StopWatchTest.testLang315()

This commit is contained in:
Gary Gregory 2024-09-04 11:28:14 -04:00
parent 6dd2addd4b
commit 695986b2b9
1 changed files with 2 additions and 2 deletions

View File

@ -278,11 +278,11 @@ public class StopWatchTest extends AbstractLangTest {
@Test
public void testLang315() throws InterruptedException {
final StopWatch watch = StopWatch.createStarted();
sleep(MILLIS_200);
sleep(TWO_MILLISECOND);
watch.suspend();
final long suspendTime = watch.getTime();
final Duration suspendDuration = watch.getDuration();
sleep(MILLIS_200);
sleep(TWO_MILLISECOND);
watch.stop();
final long totalTime = watch.getTime();
final Duration totalDuration = watch.getDuration();