Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,489 for tims (0.08 sec)

  1. src/time/time.go

    // that the methods [Time.GobDecode], [Time.UnmarshalBinary], [Time.UnmarshalJSON] and
    // [Time.UnmarshalText] are not concurrency-safe.
    //
    // Time instants can be compared using the [Time.Before], [Time.After], and [Time.Equal] methods.
    // The [Time.Sub] method subtracts two instants, producing a [Duration].
    // The [Time.Add] method adds a Time and a Duration, producing a Time.
    //
    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. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time.go

    	}
    	return false
    }
    
    // Unix returns the local time corresponding to the given Unix time
    // by wrapping time.Unix.
    func Unix(sec int64, nsec int64) Time {
    	return Time{time.Unix(sec, nsec)}
    }
    
    // Rfc3339Copy returns a copy of the Time at second-level precision.
    func (t Time) Rfc3339Copy() Time {
    	copied, _ := time.Parse(time.RFC3339, t.Format(time.RFC3339))
    	return Time{copied}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. doc/next/6-stdlib/1-time.md

    ### Timer changes
    
    Go 1.23 makes two significant changes to the implementation of
    [time.Timer] and [time.Ticker].
    
    <!-- go.dev/issue/61542 -->
    First, `Timer`s and `Ticker`s that are no longer referred to by the program
    become eligible for garbage collection immediately, even if their
    `Stop` methods have not been called.
    Earlier versions of Go did not collect unstopped `Timer`s until after
    they had fired and never collected unstopped `Ticker`s.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 20:49:22 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. src/time/tick_test.go

    			t.Setenv("GODEBUG", "asynctimerchan="+name)
    			t.Run("Timer", func(t *testing.T) {
    				tim := NewTimer(10000 * Second)
    				testTimerChan(t, tim, tim.C, name == "0")
    			})
    			t.Run("Ticker", func(t *testing.T) {
    				tim := &tickerTimer{Ticker: NewTicker(10000 * Second)}
    				testTimerChan(t, tim, tim.C, name == "0")
    			})
    		})
    	}
    }
    
    type timer interface {
    	Stop() bool
    	Reset(Duration) bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:10:37 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/endpoints/filterlatency/filterlatency_test.go

    		filterCompletedAtGot time.Time
    	)
    	handler := http.HandlerFunc(func(_ http.ResponseWriter, req *http.Request) {
    		// we expect the handler to be invoked just once.
    		handlerCallCount++
    	})
    
    	requestFilterEndedAt := time.Now()
    	wrapped := trackCompleted(handler, testingclock.NewFakeClock(requestFilterEndedAt), func(_ context.Context, fr *requestFilterRecord, completedAt time.Time) {
    		actionCallCount++
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:57:37 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  6. pkg/controller/cronjob/utils.go

    func mostRecentScheduleTime(cj *batchv1.CronJob, now time.Time, schedule cron.Schedule, includeStartingDeadlineSeconds bool) (time.Time, *time.Time, missedSchedulesType, error) {
    	earliestTime := cj.ObjectMeta.CreationTimestamp.Time
    	missedSchedules := noneMissed
    	if cj.Status.LastScheduleTime != nil {
    		earliestTime = cj.Status.LastScheduleTime.Time
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 03:34:25 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  7. pkg/controller/cronjob/utils_test.go

    		} else if !schedule.Equal(T1) {
    			t.Errorf("expected: %v, got: %v", T1, schedule)
    		}
    	}
    	{
    		// Case 3: known LastScheduleTime, no start needed.
    		// Creation time is before T1.
    		cj.ObjectMeta.CreationTimestamp = metav1.Time{Time: T1.Add(-10 * time.Minute)}
    		// Status shows a start at the expected time.
    		cj.Status.LastScheduleTime = &metav1.Time{Time: T1}
    		// Current time is after T1
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 03:34:25 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  8. src/internal/trace/testdata/testprog/gomaxprocs.go

    	}
    	// Run GOMAXPROCS a bunch of times, up and down.
    	for i := 1; i <= 16; i *= 2 {
    		runtime.GOMAXPROCS(i)
    		time.Sleep(1 * time.Millisecond)
    	}
    	for i := 16; i >= 1; i /= 2 {
    		runtime.GOMAXPROCS(i)
    		time.Sleep(1 * time.Millisecond)
    	}
    	// Stop tracing.
    	trace.Stop()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 967 bytes
    - Viewed (0)
  9. src/runtime/debug/garbage.go

    package debug
    
    import (
    	"runtime"
    	"slices"
    	"time"
    )
    
    // GCStats collect information about recent garbage collections.
    type GCStats struct {
    	LastGC         time.Time       // time of last collection
    	NumGC          int64           // number of garbage collections
    	PauseTotal     time.Duration   // total pause for all collections
    	Pause          []time.Duration // pause history, most recent first
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  10. cmd/erasure-healing-common.go

    			maxima = count
    			latest = etag
    		}
    	}
    
    	// Return the collected common max time, with maxima
    	return latest, maxima
    }
    
    // commonTime returns a maximally occurring time from a list of time.
    func commonTimeAndOccurrence(times []time.Time, group time.Duration) (maxTime time.Time, maxima int) {
    	timeOccurrenceMap := make(map[int64]int, len(times))
    	groupNano := group.Nanoseconds()
    	// Ignore the uuid sentinel and count the rest.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 12.5K bytes
    - Viewed (0)
Back to top