Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 50 for Hillis (0.15 sec)

  1. android/guava-testlib/test/com/google/common/testing/FakeTickerTest.java

        assertEquals(0, ticker.read());
        assertEquals(10, ticker.read());
        assertEquals(20, ticker.read());
      }
    
      public void testAutoIncrementStep_millis() {
        FakeTicker ticker = new FakeTicker().setAutoIncrementStep(1, TimeUnit.MILLISECONDS);
        assertEquals(0, ticker.read());
        assertEquals(1000000, ticker.read());
        assertEquals(2000000, ticker.read());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 06 14:40:46 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/math/StatsAccumulator.java

    /**
     * A mutable object which accumulates double values and tracks some basic statistics over all the
     * values added so far. The values may be added singly or in groups. This class is not thread safe.
     *
     * @author Pete Gillin
     * @author Kevin Bourrillion
     * @since 20.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public final class StatsAccumulator {
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/StatsTesting.java

    import java.util.stream.DoubleStream;
    
    /**
     * Inputs, expected outputs, and helper methods for tests of {@link StatsAccumulator}, {@link
     * Stats}, {@link PairedStatsAccumulator}, and {@link PairedStats}.
     *
     * @author Pete Gillin
     */
    class StatsTesting {
      // TODO(cpovirk): Convince myself that this larger error makes sense.
      static final double ALLOWED_ERROR = isAndroid() ? .25 : 1e-10;
    
      // Inputs and their statistics:
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 23.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

        MIN(Long.MIN_VALUE, "-oo"),
        MINUS_SMALL(-SMALL_TIMEOUT_MILLIS, "-" + SMALL_TIMEOUT_MILLIS + "ms"),
        ZERO(0L, "0ms"),
        SMALL(SMALL_TIMEOUT_MILLIS, SMALL_TIMEOUT_MILLIS + "ms"),
        LARGE(UNEXPECTED_HANG_DELAY_MILLIS * 2, (2 * UNEXPECTED_HANG_DELAY_MILLIS) + "ms"),
        MAX(Long.MAX_VALUE, "+oo");
    
        final long millis;
        final String label;
    
        Timeout(long millis, String label) {
          this.millis = millis;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 14:48:57 GMT 2023
    - 27.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

     * StatsAccumulator#add} and {@link StatsAccumulator#addAll} methods. For tests of the {@link
     * StatsAccumulator#snapshot} method which returns {@link Stats} instances, see {@link StatsTest}.
     *
     * @author Pete Gillin
     */
    public class StatsAccumulatorTest extends TestCase {
    
      private StatsAccumulator emptyAccumulator;
      private StatsAccumulator emptyAccumulatorByAddAllEmptyIterable;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 34K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/math/StatsTest.java

    import java.nio.ByteOrder;
    import junit.framework.TestCase;
    
    /**
     * Tests for {@link Stats}. This tests instances created by both {@link Stats#of} and {@link
     * StatsAccumulator#snapshot}.
     *
     * @author Pete Gillin
     */
    public class StatsTest extends TestCase {
    
      public void testCount() {
        assertThat(EMPTY_STATS_VARARGS.count()).isEqualTo(0);
        assertThat(EMPTY_STATS_ITERABLE.count()).isEqualTo(0);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 28.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/TestThread.java

     * @author Justin T. Sampson
     */
    public final class TestThread<L> extends Thread implements TearDown {
    
      private static final long DUE_DILIGENCE_MILLIS = 100;
      private static final long TIMEOUT_MILLIS = 5000;
    
      private final L lockLikeObject;
    
      private final SynchronousQueue<Request> requestQueue = new SynchronousQueue<>();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

        MIN(Long.MIN_VALUE, "-oo"),
        MINUS_SMALL(-SMALL_TIMEOUT_MILLIS, "-" + SMALL_TIMEOUT_MILLIS + "ms"),
        ZERO(0L, "0ms"),
        SMALL(SMALL_TIMEOUT_MILLIS, SMALL_TIMEOUT_MILLIS + "ms"),
        LARGE(UNEXPECTED_HANG_DELAY_MILLIS * 2, (2 * UNEXPECTED_HANG_DELAY_MILLIS) + "ms"),
        MAX(Long.MAX_VALUE, "+oo");
    
        final long millis;
        final String label;
    
        Timeout(long millis, String label) {
          this.millis = millis;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 14:48:57 GMT 2023
    - 26.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java

      }
    
      private static class SleepingRunnable implements Runnable {
        final int millis;
        volatile boolean completed;
    
        public SleepingRunnable(int millis) {
          this.millis = millis;
        }
    
        @Override
        public void run() {
          try {
            Thread.sleep(millis);
          } catch (InterruptedException wontHappen) {
            throw new AssertionError();
          }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.1K bytes
    - Viewed (0)
  10. guava-testlib/test/com/google/common/testing/FakeTickerTest.java

        assertEquals(0, ticker.read());
        assertEquals(10, ticker.read());
        assertEquals(20, ticker.read());
      }
    
      public void testAutoIncrementStep_millis() {
        FakeTicker ticker = new FakeTicker().setAutoIncrementStep(1, TimeUnit.MILLISECONDS);
        assertEquals(0, ticker.read());
        assertEquals(1000000, ticker.read());
        assertEquals(2000000, ticker.read());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 14:40:46 GMT 2024
    - 6.3K bytes
    - Viewed (0)
Back to top