Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 405 for duration (0.22 sec)

  1. cmd/speedtest.go

    				}
    
    				// if the default concurrency yields zero results, throw an error.
    				if throughputHighestResults[i].Uploads == 0 && opts.concurrencyStart == concurrency {
    					errStr = fmt.Sprintf("no results for uploads upon first attempt, concurrency %d and duration %s", opts.concurrencyStart, opts.duration)
    				}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Jan 28 18:04:17 GMT 2024
    - 9K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Stopwatch.java

    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import com.google.j2objc.annotations.J2ObjCIncompatible;
    import java.time.Duration;
    import java.util.concurrent.TimeUnit;
    
    /**
     * An object that accurately measures <i>elapsed time</i>: the measured duration between two
     * successive readings of "now" in the same process.
     *
     * <p>In contrast, <i>wall time</i> is a reading of "now" as given by a method like
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 23 15:09:35 GMT 2023
    - 9.2K bytes
    - Viewed (0)
  3. cmd/data-scanner-metric.go

    	return func(sz int) {
    		duration := time.Since(startTime)
    
    		atomic.AddUint64(&p.operations[s], 1)
    		if s < scannerMetricLastRealtime {
    			p.latency[s].addSize(duration, int64(sz))
    		}
    	}
    }
    
    // incTime will increment time on metric s with a specific duration.
    // Use for s < scannerMetricLastRealtime
    func (p *scannerMetrics) incTime(s scannerMetric, d time.Duration) {
    	atomic.AddUint64(&p.operations[s], 1)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 25 05:15:31 GMT 2023
    - 9.1K bytes
    - Viewed (0)
  4. cmd/dynamic-timeouts_test.go

    	for i := 0; i < dynamicTimeoutLogSize; i++ {
    
    		rnd := f()
    		duration := time.Duration(float64(successTimeout) * rnd)
    
    		if duration < 100*time.Millisecond {
    			duration = 100 * time.Millisecond
    		}
    		if duration >= time.Minute {
    			timeout.LogFailure()
    		} else {
    			timeout.LogSuccess(duration)
    		}
    	}
    }
    
    func TestDynamicTimeoutAdjustExponential(t *testing.T) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Oct 14 10:08:40 GMT 2022
    - 5.4K bytes
    - Viewed (0)
  5. cmd/last-minute.go

    	Size  int64
    	N     int64
    }
    
    // Add a duration to a single element.
    func (a *AccElem) add(dur time.Duration) {
    	if dur < 0 {
    		dur = 0
    	}
    	a.Total += int64(dur)
    	a.N++
    }
    
    // Merge b into a.
    func (a *AccElem) merge(b AccElem) {
    	a.N += b.N
    	a.Total += b.Total
    	a.Size += b.Size
    }
    
    // Avg returns average time spent.
    func (a AccElem) avg() time.Duration {
    	if a.N >= 1 && a.Total > 0 {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Jul 05 17:40:45 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  6. internal/config/identity/tls/config.go

    	InsecureSkipVerify bool `json:"skip_verify"`
    }
    
    const (
    	defaultExpiry time.Duration = 1 * time.Hour
    	minExpiry     time.Duration = 15 * time.Minute
    	maxExpiry     time.Duration = 365 * 24 * time.Hour
    )
    
    // GetExpiryDuration - return parsed expiry duration.
    func (l Config) GetExpiryDuration(dsecs string) (time.Duration, error) {
    	if dsecs == "" {
    		return defaultExpiry, nil
    	}
    
    	d, err := strconv.Atoi(dsecs)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 3.6K bytes
    - Viewed (0)
  7. internal/dsync/dsync-server_test.go

    	l.lockNotFound = !refreshed
    }
    
    func (l *lockServer) setResponseDelay(responseDelay time.Duration) {
    	atomic.StoreInt64(&l.responseDelay, int64(responseDelay))
    }
    
    func (l *lockServer) Lock(args *LockArgs) (reply bool, err error) {
    	if d := atomic.LoadInt64(&l.responseDelay); d != 0 {
    		time.Sleep(time.Duration(d))
    	}
    
    	l.mutex.Lock()
    	defer l.mutex.Unlock()
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Jan 23 16:46:37 GMT 2023
    - 8.3K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

         *
         * The default value is 0 which imposes no timeout.
         */
        @SuppressLint("NewApi")
        @IgnoreJRERequirement
        fun callTimeout(duration: Duration) =
          apply {
            callTimeout(duration.toMillis(), MILLISECONDS)
          }
    
        /**
         * Sets the default timeout for complete calls. A value of 0 means no timeout, otherwise values
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:21:33 GMT 2024
    - 52K bytes
    - Viewed (0)
  9. android/guava-testlib/test/com/google/common/testing/FakeTickerTest.java

      }
    
      @GwtIncompatible // java.time.Duration
      @SuppressWarnings("Java7ApiChecker") // guava-android can rely on library desugaring now.
      @IgnoreJRERequirement // TODO: b/288085449 - Remove this once we use library-desugaring scents.
      public void testAutoIncrementStep_duration() {
        FakeTicker ticker = new FakeTicker().setAutoIncrementStep(Duration.ofMillis(1));
        assertEquals(0, 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)
  10. cmd/handler-api.go

    	mu sync.RWMutex
    
    	requestsDeadline time.Duration
    	requestsPool     chan struct{}
    	clusterDeadline  time.Duration
    	listQuorum       string
    	corsAllowOrigins []string
    	// total drives per erasure set across pools.
    	totalDriveCount       int
    	replicationPriority   string
    	replicationMaxWorkers int
    	transitionWorkers     int
    
    	staleUploadsExpiry          time.Duration
    	staleUploadsCleanupInterval time.Duration
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 08 09:22:27 GMT 2024
    - 10K bytes
    - Viewed (0)
Back to top