Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for nanoSeconds (0.38 sec)

  1. src/time/time.go

    // clock reading.
    type Time struct {
    	// wall and ext encode the wall time seconds, wall time nanoseconds,
    	// and optional monotonic clock reading in nanoseconds.
    	//
    	// From high to low bit position, wall encodes a 1-bit flag (hasMonotonic),
    	// a 33-bit seconds field, and a 30-bit wall time nanoseconds field.
    	// The nanoseconds field is in the range [0, 999999999].
    	// If the hasMonotonic bit is 0, then the 33-bit field must be zero
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  2. src/time/time_test.go

    	{"9007199254740993ns", (1<<53 + 1) * Nanosecond},
    	// largest duration that can be represented by int64 in nanoseconds
    	{"9223372036854775807ns", (1<<63 - 1) * Nanosecond},
    	{"9223372036854775.807us", (1<<63 - 1) * Nanosecond},
    	{"9223372036s854ms775us807ns", (1<<63 - 1) * Nanosecond},
    	{"-9223372036854775808ns", -1 << 63 * Nanosecond},
    	{"-9223372036854775.808us", -1 << 63 * Nanosecond},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  3. src/runtime/mgcpacer.go

    	bgScanCredit atomic.Int64
    
    	// assistTime is the nanoseconds spent in mutator assists
    	// during this cycle. This is updated atomically, and must also
    	// be updated atomically even during a STW, because it is read
    	// by sysmon. Updates occur in bounded batches, since it is both
    	// written and read throughout the cycle.
    	assistTime atomic.Int64
    
    	// dedicatedMarkTime is the nanoseconds spent in dedicated mark workers
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 55.4K bytes
    - Viewed (0)
  4. src/syscall/syscall_windows.go

    		OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, 0)
    	if e != nil {
    		return e
    	}
    	defer Close(h)
    	a := Filetime{}
    	w := Filetime{}
    	if tv[0].Nanoseconds() != 0 {
    		a = NsecToFiletime(tv[0].Nanoseconds())
    	}
    	if tv[0].Nanoseconds() != 0 {
    		w = NsecToFiletime(tv[1].Nanoseconds())
    	}
    	return SetFileTime(h, nil, &a, &w)
    }
    
    // This matches the value in os/file_windows.go.
    const _UTIME_OMIT = -1
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 52.7K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        assertFailsWith<InterruptedIOException> {
          stream.takeHeaders()
        }
        val elapsedNanos = System.nanoTime() - startNanos
        awaitWatchdogIdle()
        // 200ms delta
        assertThat(TimeUnit.NANOSECONDS.toMillis(elapsedNanos).toDouble())
          .isCloseTo(500.0, 200.0)
        assertThat(connection.openStreamCount()).isEqualTo(0)
    
        // Verify the peer received what was expected.
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/cache/CacheBuilder.java

      @CanIgnoreReturnValue
      public CacheBuilder<K, V> expireAfterWrite(java.time.Duration duration) {
        return expireAfterWrite(toNanosSaturated(duration), TimeUnit.NANOSECONDS);
      }
    
      /**
       * Specifies that each entry should be automatically removed from the cache once a fixed duration
       * has elapsed after the entry's creation, or the most recent replacement of its value.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 51.3K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

          assertThat(expected.message).isEqualTo(
            "stream was reset: PROTOCOL_ERROR",
          )
        }
        val elapsedUntilFailure = System.nanoTime() - executeAtNanos
        assertThat(TimeUnit.NANOSECONDS.toMillis(elapsedUntilFailure).toDouble())
          .isCloseTo(1000.0, 250.0)
    
        // Confirm a single ping was sent but not acknowledged.
        val logs = testLogHandler.takeAll()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 75.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/util/concurrent/Futures.java

          AsyncCallable<O> callable, Duration delay, ScheduledExecutorService executorService) {
        return scheduleAsync(callable, toNanosSaturated(delay), TimeUnit.NANOSECONDS, executorService);
      }
    
      /**
       * Schedules {@code callable} on the specified {@code executor}, returning a {@code Future}.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 64.1K bytes
    - Viewed (0)
  9. src/runtime/mgcscavenge.go

    	sleepRatio float64
    
    	// sleepController controls sleepRatio.
    	//
    	// See sleepRatio for more details.
    	sleepController piController
    
    	// controllerCooldown is the time left in nanoseconds during which we avoid
    	// using the controller and we hold sleepRatio at a conservative
    	// value. Used if the controller's assumptions fail to hold.
    	controllerCooldown int64
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:48:45 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  10. src/time/format.go

    	return (std >> stdArgShift) & 0xfff
    }
    
    func separator(std int) byte {
    	if (std >> stdSeparatorShift) == 0 {
    		return '.'
    	}
    	return ','
    }
    
    // appendNano appends a fractional second, as nanoseconds, to b
    // and returns the result. The nanosec must be within [0, 999999999].
    func appendNano(b []byte, nanosec int, std int) []byte {
    	trim := std&stdMask == stdFracSecond9
    	n := digitsLen(std)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:28 UTC 2024
    - 49.3K bytes
    - Viewed (0)
Back to top