Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 100 for accurate (0.08 seconds)

  1. guava/src/com/google/common/base/Stopwatch.java

     * Stopwatch} requires object allocation and additional method calls, which can reduce the accuracy
     * of the elapsed times reported. {@code Stopwatch} is still suitable for logging and metrics where
     * reasonably accurate values are sufficient. If the uncommon case that you need to maximize
     * accuracy, use {@code System.nanoTime()} directly instead.
     *
     * <p>Basic usage:
     *
     * {@snippet :
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Oct 08 18:55:33 GMT 2025
    - 9.2K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/Platform.java

       *
       * @param reference any array of the desired type
       * @param length the length of the new array
       */
      /*
       * The new array contains nulls, even if the old array did not. If we wanted to be accurate, we
       * would declare a return type of `@Nullable T[]`. However, we've decided not to think too hard
       * about arrays for now, as they're a mess. (We previously discussed this in the review of
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/hash/LongAdder.java

      public void decrement() {
        add(-1L);
      }
    
      /**
       * Returns the current sum. The returned value is NOT an atomic snapshot; invocation in
       * the absence of concurrent updates returns an accurate result, but concurrent updates that occur
       * while the sum is being calculated might not be incorporated.
       *
       * @return the sum
       */
      @Override
      public long sum() {
        long sum = base;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Mar 20 13:05:10 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/io/TempFileCreator.java

            };
          }
        }
    
        private static String getUsername() {
          /*
           * https://github.com/google/guava/issues/6634: ProcessHandle has more accurate information,
           * but that class isn't available under all environments that we support. We use it if
           * available and fall back if not.
           */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 29 18:50:14 GMT 2025
    - 11.8K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

      }
    
      public void testServiceStartupTimes_selfStartingServices() {
        // This tests to ensure that:
        // 1. service times are accurate when the service is started by the manager
        // 2. service times are recorded when the service is not started by the manager (but they may
        // not be accurate).
        Service b =
            new NoOpDelayedService(353) {
              @Override
              protected void doStart() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 17:49:12 GMT 2025
    - 25.5K bytes
    - Click Count (0)
  6. guava/src/com/google/common/hash/BloomFilterStrategies.java

         * close *estimate* of the actual number of bits set. It's not possible to do better than an
         * estimate without locking. Note that the number, if not exactly accurate, is *always*
         * underestimating, never overestimating.
         */
        long bitCount() {
          return bitCount.sum();
        }
    
        LockFreeBitArray copy() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Jan 08 14:27:16 GMT 2025
    - 10.7K bytes
    - Click Count (0)
  7. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

        assertThat(inputStream.read()).isEqualTo('A'.code)
        assertThat(inputStream.read()).isEqualTo('B'.code)
        assertThat(inputStream.read()).isEqualTo('C'.code)
        try {
          inputStream.read() // if Content-Length was accurate, this would return -1 immediately
          fail<Any>()
        } catch (expected: SocketTimeoutException) {
        }
        val urlConnection2 = server.url("/").toUrl().openConnection()
        val in2 = urlConnection2.getInputStream()
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Thu Jul 03 13:16:34 GMT 2025
    - 22.3K bytes
    - Click Count (0)
  8. apache-maven/src/main/appended-resources/licenses/EPL-2.0.txt

      file, then You may include the notice in a location (such as a LICENSE
      file in a relevant directory) where a recipient would be likely to
      look for such a notice.
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Jun 04 06:45:16 GMT 2024
    - 13.9K bytes
    - Click Count (0)
  9. impl/maven-core/src/test/java/org/apache/maven/configuration/internal/CompositeBeanHelperPerformanceTest.java

    import static org.mockito.Mockito.when;
    
    /**
     * Performance comparison test between original CompositeBeanHelper and OptimizedCompositeBeanHelper.
     * This test uses JMH (Java Microbenchmark Harness) for accurate performance measurement.
     *
     * To run this benchmark:
     * mvn test -Dtest=CompositeBeanHelperPerformanceTest -pl impl/maven-core
     *
     * The main method will execute the JMH benchmarks with the configured parameters.
     *
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Jul 17 07:40:49 GMT 2025
    - 16.6K bytes
    - Click Count (0)
  10. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

        assertThat(inputStream.read()).isEqualTo('B'.code)
        assertThat(inputStream.read()).isEqualTo('C'.code)
        try {
          inputStream.read() // if Content-Length was accurate, this would return -1 immediately
          fail<Unit>()
        } catch (expected: SocketTimeoutException) {
          // Expected.
        }
        val urlConnection2 = server.url("/").toUrl().openConnection()
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sun Aug 03 22:38:00 GMT 2025
    - 28K bytes
    - Click Count (0)
Back to Top