Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testElapsed_multipleSegments (0.13 sec)

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

        ticker.advance(1);
        stopwatch.start();
        ticker.advance(4);
        stopwatch.stop();
        ticker.advance(9);
        assertEquals(4, stopwatch.elapsed(NANOSECONDS));
      }
    
      public void testElapsed_multipleSegments() {
        stopwatch.start();
        ticker.advance(9);
        stopwatch.stop();
    
        ticker.advance(16);
    
        stopwatch.start();
        assertEquals(9, stopwatch.elapsed(NANOSECONDS));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.1K bytes
    - Viewed (0)
Back to top