Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 81 for nanotime (0.43 sec)

  1. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/slf4j/OutputEventListenerBackedLoggerTest.groovy

    import static org.slf4j.Logger.ROOT_LOGGER_NAME
    
    class OutputEventListenerBackedLoggerTest extends Specification {
    
        final List<LogEvent> events = []
        final long now = TimeUnit.MILLISECONDS.convert(System.nanoTime(), TimeUnit.NANOSECONDS)
        final Clock timeProvider = new Clock() {
            @Override
            long getCurrentTime() {
                return now
            }
    
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 26.1K bytes
    - Viewed (0)
  2. src/runtime/debuglog.go

    // call with "if dlogEnabled".
    //
    //go:nosplit
    //go:nowritebarrierrec
    func dlog() *dlogger {
    	if !dlogEnabled {
    		return nil
    	}
    
    	// Get the time.
    	tick, nano := uint64(cputicks()), uint64(nanotime())
    
    	// Try to get a cached logger.
    	l := getCachedDlogger()
    
    	// If we couldn't get a cached logger, try to get one from the
    	// global pool.
    	if l == nil {
    		allp := (*uintptr)(unsafe.Pointer(&allDloggers))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  3. src/runtime/metrics.go

    	// just relying on the STW snapshot. The issue here is that currently
    	// this will cause non-monotonicity in the "user" CPU time metric.
    	//
    	// a.cpuStats.accumulate(nanotime(), gcphase == _GCmark)
    }
    
    // gcStatsAggregate represents various GC stats obtained from the runtime
    // acquired together to avoid skew and inconsistencies.
    type gcStatsAggregate struct {
    	heapScan    uint64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 26K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

      internal fun sendDegradedPingLater() {
        this.withLock {
          if (degradedPongsReceived < degradedPingsSent) return // Already awaiting a degraded pong.
          degradedPingsSent++
          degradedPongDeadlineNs = System.nanoTime() + DEGRADED_PONG_TIMEOUT_NS
        }
        writerQueue.execute("$connectionName ping") {
          writePing(false, DEGRADED_PING, 0)
        }
      }
    
      class Builder(
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  5. src/runtime/sema.go

    		throw("bad notifyList size")
    	}
    }
    
    //go:linkname sync_nanotime sync.runtime_nanotime
    func sync_nanotime() int64 {
    	return nanotime()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 19K bytes
    - Viewed (0)
  6. src/runtime/mstats.go

    	// Finally, copy out the complete delta.
    	*out = m.stats[currGen]
    
    	releasem(mp)
    }
    
    type cpuStats struct {
    	// All fields are CPU time in nanoseconds computed by comparing
    	// calls of nanotime. This means they're all overestimates, because
    	// they don't accurately compute on-CPU time (so some of the time
    	// could be spent scheduled away by the OS).
    
    	GCAssistTime    int64 // GC assists
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  7. src/runtime/trace.go

    // another goroutine calls wake.
    //
    // Must not be called by more than one goroutine at a time and
    // must not be called concurrently with close.
    func (s *wakeableSleep) sleep(ns int64) {
    	s.timer.reset(nanotime()+ns, 0)
    	lock(&s.lock)
    	if raceenabled {
    		raceacquire(unsafe.Pointer(&s.lock))
    	}
    	wakeup := s.wakeup
    	if raceenabled {
    		racerelease(unsafe.Pointer(&s.lock))
    	}
    	unlock(&s.lock)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/cache/CacheBuilder.java

      long getRefreshNanos() {
        return (refreshNanos == UNSET_INT) ? DEFAULT_REFRESH_NANOS : refreshNanos;
      }
    
      /**
       * Specifies a nanosecond-precision time source for this cache. By default, {@link
       * System#nanoTime} is used.
       *
       * <p>The primary intent of this method is to facilitate testing of caches with a fake or mock
       * time source.
       *
       * @return this {@code CacheBuilder} instance (for chaining)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/writers_test.go

    	pod.UID = uuid.NewUUID()
    	pod.ResourceVersion = strconv.Itoa(r.Int())
    	pod.Spec.NodeName = fmt.Sprintf("some-node-prefix-%x", r.Int63n(1000))
    
    	randTime(&pod.CreationTimestamp.Time, r)
    	randTime(&pod.Status.StartTime.Time, r)
    	for i := range pod.Status.Conditions {
    		randTime(&pod.Status.Conditions[i].LastTransitionTime.Time, r)
    	}
    	for i := range pod.Status.ContainerStatuses {
    		containerStatus := &pod.Status.ContainerStatuses[i]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  10. src/database/sql/convert_test.go

    		}
    		if bp, boolTest := ct.d.(*bool); boolTest && *bp != ct.wantbool && ct.wanterr == "" {
    			errf("want bool %v, got %v", ct.wantbool, *bp)
    		}
    		if !ct.wanttime.IsZero() && !ct.wanttime.Equal(timeValue(ct.d)) {
    			errf("want time %v, got %v", ct.wanttime, timeValue(ct.d))
    		}
    		if ct.wantnil && *ct.d.(**int64) != nil {
    			errf("want nil, got %v", intPtrValue(ct.d))
    		}
    		if ct.wantptr != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 10 20:23:22 UTC 2024
    - 17K bytes
    - Viewed (0)
Back to top