Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testReset_whileRunning (0.24 sec)

  1. guava-tests/test/com/google/common/base/StopwatchTest.java

        ticker.advance(2);
        assertEquals(0, stopwatch.elapsed(NANOSECONDS));
        stopwatch.start();
        ticker.advance(3);
        assertEquals(3, stopwatch.elapsed(NANOSECONDS));
      }
    
      public void testReset_whileRunning() {
        ticker.advance(1);
        stopwatch.start();
        assertEquals(0, stopwatch.elapsed(NANOSECONDS));
        ticker.advance(2);
        assertEquals(2, stopwatch.elapsed(NANOSECONDS));
        stopwatch.reset();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top