Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for nanotime (0.13 sec)

  1. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        peer.sendFrame().ping(true, Http2Connection.AWAIT_PING, 5)
        peer.play()
    
        // Play it back.
        val connection = connect(peer)
        val pingAtNanos = System.nanoTime()
        connection.writePingAndAwaitPong()
        val elapsedNanos = System.nanoTime() - pingAtNanos
        assertThat(elapsedNanos).isGreaterThan(0L)
        assertThat(elapsedNanos).isLessThan(TimeUnit.SECONDS.toNanos(1))
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  2. src/runtime/mgc.go

    // worker.
    func pollFractionalWorkerExit() bool {
    	// This should be kept in sync with the fractional worker
    	// scheduler logic in findRunnableGCWorker.
    	now := nanotime()
    	delta := now - gcController.markStartTime
    	if delta <= 0 {
    		return true
    	}
    	p := getg().m.p.ptr()
    	selfTime := p.gcFractionalMarkTime + (now - p.gcMarkWorkerStartTime)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62K bytes
    - Viewed (0)
  3. src/runtime/mgcscavenge.go

    	s.sleepRatio = startingScavSleepRatio
    
    	// Install real functions if stubs aren't present.
    	if s.scavenge == nil {
    		s.scavenge = func(n uintptr) (uintptr, int64) {
    			start := nanotime()
    			r := mheap_.pages.scavenge(n, nil, false)
    			end := nanotime()
    			if start >= end {
    				return r, 0
    			}
    			scavenge.backgroundTime.Add(end - start)
    			return r, end - start
    		}
    	}
    	if s.shouldStop == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:48:45 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

        Object localValue = value;
        if (localValue != null & !(localValue instanceof SetFuture)) {
          return getDoneValue(localValue);
        }
        // we delay calling nanoTime until we know we will need to either park or spin
        final long endNanos = remainingNanos > 0 ? System.nanoTime() + remainingNanos : 0;
        long_wait_loop:
        if (remainingNanos >= SPIN_THRESHOLD_NANOS) {
          Waiter oldHead = waiters;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 63.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/AbstractFuture.java

        Object localValue = value;
        if (localValue != null & !(localValue instanceof SetFuture)) {
          return getDoneValue(localValue);
        }
        // we delay calling nanoTime until we know we will need to either park or spin
        final long endNanos = remainingNanos > 0 ? System.nanoTime() + remainingNanos : 0;
        long_wait_loop:
        if (remainingNanos >= SPIN_THRESHOLD_NANOS) {
          Waiter oldHead = waiters;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 62.8K bytes
    - Viewed (1)
  6. src/cmd/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go

    	var nsec_per_sec int64 = 1000000000
    
    	if ts == nil {
    		return EFAULT
    	}
    	if clockid == CLOCK_REALTIME || clockid == CLOCK_MONOTONIC {
    		var nanotime int64 = runtime.Nanotime1()
    		ts.Sec = nanotime / nsec_per_sec
    		ts.Nsec = nanotime % nsec_per_sec
    	} else if clockid == CLOCK_PROCESS_CPUTIME_ID || clockid == CLOCK_THREAD_CPUTIME_ID {
    		var tm Tms
    		_, err := Times(&tm)
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  7. src/runtime/mgcmark.go

    	// system stack, this is non-preemptible, so we can
    	// just measure start and end time.
    	//
    	// Limiter event tracking might be disabled if we end up here
    	// while on a mark worker.
    	startTime := nanotime()
    	trackLimiterEvent := gp.m.p.ptr().limiterEvent.start(limiterEventMarkAssist, startTime)
    
    	decnwait := atomic.Xadd(&work.nwait, -1)
    	if decnwait == work.nproc {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 52.5K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

        val call = client.newCall(Request(server.url("/")))
        val executeAtNanos = System.nanoTime()
        assertFailsWith<StreamResetException> {
          call.execute()
        }.also { expected ->
          assertThat(expected.message).isEqualTo(
            "stream was reset: PROTOCOL_ERROR",
          )
        }
        val elapsedUntilFailure = System.nanoTime() - executeAtNanos
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 75.3K bytes
    - Viewed (0)
  9. src/runtime/mprof.go

    		lt.timeRate = rate
    	}
    	if int64(cheaprand())%lt.timeRate == 0 {
    		lt.timeStart = nanotime()
    	}
    
    	if rate > 0 && int64(cheaprand())%rate == 0 {
    		lt.tickStart = cputicks()
    	}
    }
    
    func (lt *lockTimer) end() {
    	gp := getg()
    
    	if lt.timeStart != 0 {
    		nowTime := nanotime()
    		gp.m.mLockProfile.waitTime.Add((nowTime - lt.timeStart) * lt.timeRate)
    	}
    
    	if lt.tickStart != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  10. src/runtime/mheap.go

    		// time so we can track it for the GC CPU limiter.
    		//
    		// Limiter event tracking might be disabled if we end up here
    		// while on a mark worker.
    		start := nanotime()
    		track := pp.limiterEvent.start(limiterEventScavengeAssist, start)
    
    		// Scavenge, but back out if the limiter turns on.
    		released := h.pages.scavenge(bytesToScavenge, func() bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 78K bytes
    - Viewed (0)
Back to top