Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,292 for Time (0.03 sec)

  1. internal/dsync/dsync_test.go

    	dm.Lock(id, source)
    	time.Sleep(time.Duration(10+(rand.Float32()*50)) * time.Millisecond)
    	dm.Unlock(t.Context())
    
    	dm.Lock(id, source)
    	time.Sleep(time.Duration(10+(rand.Float32()*50)) * time.Millisecond)
    	dm.Unlock(t.Context())
    
    	dm.Lock(id, source)
    	time.Sleep(time.Duration(10+(rand.Float32()*50)) * time.Millisecond)
    	dm.Unlock(t.Context())
    }
    
    Registered: 2025-05-25 19:28
    - Last Modified: 2025-04-09 14:28
    - 10.9K bytes
    - Viewed (0)
  2. istioctl/pkg/metrics/metrics_test.go

    	return nil, nil
    }
    
    func (client mockPromAPI) LabelNames(
    	ctx context.Context, matches []string, startTime time.Time, endTime time.Time, options ...promv1.Option,
    ) ([]string, promv1.Warnings, error) {
    	return nil, nil, nil
    }
    
    func (client mockPromAPI) LabelValues(context.Context, string, []string, time.Time, time.Time, ...promv1.Option,
    ) (prometheus_model.LabelValues, promv1.Warnings, error) {
    	return nil, nil, nil
    }
    
    Registered: 2025-05-28 22:53
    - Last Modified: 2024-08-16 01:35
    - 8K bytes
    - Viewed (0)
  3. internal/bucket/lifecycle/lifecycle_test.go

    	testCases := []struct {
    		modTime  time.Time
    		days     ExpirationDays
    		expected time.Time
    	}{
    		{
    			time.Date(2020, time.March, 15, 10, 10, 10, 0, time.UTC),
    			4,
    			time.Date(2020, time.March, 20, 0, 0, 0, 0, time.UTC),
    		},
    		{
    			time.Date(2020, time.March, 15, 0, 0, 0, 0, time.UTC),
    			1,
    			time.Date(2020, time.March, 17, 0, 0, 0, 0, time.UTC),
    		},
    	}
    
    Registered: 2025-05-25 19:28
    - Last Modified: 2025-04-03 06:45
    - 55.6K bytes
    - Viewed (0)
  4. internal/s3select/parquet/reader.go

    				var duration time.Duration
    				// Only support UTC normalized timestamps.
    				if ts.IsAdjustedToUTC {
    					switch {
    					case ts.Unit.IsSetNANOS():
    						duration = time.Duration(val) * time.Nanosecond
    					case ts.Unit.IsSetMILLIS():
    						duration = time.Duration(val) * time.Millisecond
    					case ts.Unit.IsSetMICROS():
    						duration = time.Duration(val) * time.Microsecond
    					default:
    Registered: 2025-05-25 19:28
    - Last Modified: 2025-02-18 16:25
    - 4.5K bytes
    - Viewed (0)
  5. internal/bucket/lifecycle/evaluator_test.go

    	var objs []ObjectOpts
    	curModTime := time.Date(2025, time.February, 10, 23, 0, 0, 0, time.UTC)
    	for i := range 5 {
    		obj := ObjectOpts{
    			Name:        "obj",
    			VersionID:   uuid.New().String(),
    			ModTime:     curModTime.Add(time.Duration(-i) * time.Second),
    			NumVersions: 5,
    		}
    		if i == 0 {
    			obj.IsLatest = true
    		} else {
    			obj.SuccessorModTime = curModTime.Add(time.Duration(-i+1) * time.Second)
    		}
    Registered: 2025-05-25 19:28
    - Last Modified: 2025-04-08 15:41
    - 5K bytes
    - Viewed (0)
  6. cmd/perf-tests.go

    // This is to improve the RX throughput accuracy.
    type netPerfRX struct {
    	RX                uint64    // RX bytes
    	lastToConnect     time.Time // time at which last peer to connect to us
    	firstToDisconnect time.Time // time at which the first peer disconnects from us
    	RXSample          uint64    // RX bytes between lastToConnect and firstToDisconnect
    	activeConnections uint64
    	sync.RWMutex
    }
    
    Registered: 2025-05-25 19:28
    - Last Modified: 2025-03-30 00:56
    - 11.7K bytes
    - Viewed (0)
  7. cmd/update_test.go

    		data                string
    		expectedResult      time.Time
    		expectedSha256hex   string
    		expectedReleaseInfo string
    		expectedErr         bool
    	}{
    		{"more than two fields", time.Time{}, "", "", true},
    		{"more than", time.Time{}, "", "", true},
    		{"more than.two.fields", time.Time{}, "", "", true},
    		{"more minio.RELEASE.fields", time.Time{}, "", "", true},
    Registered: 2025-05-25 19:28
    - Last Modified: 2025-02-18 16:25
    - 10.4K bytes
    - Viewed (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/MonotonicClock.java

     */
    package org.apache.maven.api;
    
    import java.time.Clock;
    import java.time.Duration;
    import java.time.Instant;
    import java.time.ZoneId;
    import java.time.ZoneOffset;
    
    /**
     * A Clock implementation that combines monotonic timing with wall-clock time.
     * <p>
     * This class provides precise time measurements using {@link System#nanoTime()}
     * while maintaining wall-clock time information in UTC. The wall-clock time
    Registered: 2025-05-24 08:56
    - Last Modified: 2025-01-15 06:28
    - 5.6K bytes
    - Viewed (0)
  9. internal/config/drive/drive.go

    	if d == "" {
    		cfg.MaxTimeout = 30 * time.Second
    	} else {
    		dur, _ := time.ParseDuration(d)
    		if dur < time.Second {
    			cfg.MaxTimeout = 30 * time.Second
    		} else {
    			cfg.MaxTimeout = getMaxTimeout(dur)
    		}
    	}
    	return cfg, err
    }
    
    func getMaxTimeout(t time.Duration) time.Duration {
    	if t > time.Second {
    		return t
    	}
    	// get default value
    Registered: 2025-05-25 19:28
    - Last Modified: 2024-11-11 14:51
    - 3K bytes
    - Viewed (0)
  10. internal/amztime/parse.go

    // extension for http.TimeFormat - return time might be zero
    // if the timeStr is invalid.
    func ParseHeader(timeStr string) (time.Time, error) {
    	for _, dateFormat := range httpTimeFormats {
    		t, err := time.Parse(dateFormat, timeStr)
    		if err == nil {
    			return t, nil
    		}
    	}
    	return time.Time{}, ErrMalformedDate
    }
    
    // ParseReplicationTS parse http.TimeFormat first
    // will try time.RFC3339Nano when parse http.TimeFormat failed
    Registered: 2025-05-25 19:28
    - Last Modified: 2024-01-18 07:03
    - 2.5K bytes
    - Viewed (0)
Back to top