- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 318 for timeCh (0.12 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/wait/loop.go
// // This is the common loop construct for all polling in the wait package. func loopConditionUntilContext(ctx context.Context, t Timer, immediate, sliding bool, condition ConditionWithContextFunc) error { defer t.Stop() var timeCh <-chan time.Time doneCh := ctx.Done() if !sliding { timeCh = t.C() } // if immediate is true the condition is // guaranteed to be executed at least once,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 19 02:47:00 UTC 2023 - 2.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/wait/timer.go
type Timer interface { // C returns a channel that will receive a struct{} each time the timer fires. // The channel should not be waited on after Stop() is invoked. It is allowed // to cache the returned value of C() for the lifetime of the Timer. C() <-chan time.Time // Next is invoked by wait functions to signal timers that the next interval // should begin. You may only use Next() if you have drained the channel C().
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 14 19:14:11 UTC 2023 - 2.9K bytes - Viewed (0) -
src/runtime/time.go
return when } // check runs any timers in ts that are ready. // If now is not 0 it is the current time. // It returns the passed time or the current time if now was passed as 0. // and the time when the next timer should run or 0 if there is no next timer, // and reports whether it ran any timers. // If the time when the next timer should run is not 0, // it is always larger than the returned time.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 29 14:36:24 UTC 2024 - 37.5K bytes - Viewed (0) -
platforms/core-runtime/time/src/main/java/org/gradle/internal/time/Time.java
* and are therefore not synchronized with {@link #clock()} or the system wall clock. * * System.nanoTime() does not consider time elapsed while the system is in hibernation. * Therefore, timers effectively measure the elapsed time, of which the system was awake. */ public static Timer startTimer() { return new DefaultTimer(TimeSource.SYSTEM); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 20:20:17 UTC 2024 - 2.2K bytes - Viewed (0) -
src/time/time.go
// // Programs using times should typically store and pass them as values, // not pointers. That is, time variables and struct fields should be of // type [time.Time], not *time.Time. // // A Time value can be used by multiple goroutines simultaneously except // that the methods [Time.GobDecode], [Time.UnmarshalBinary], [Time.UnmarshalJSON] and // [Time.UnmarshalText] are not concurrency-safe. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 50.7K bytes - Viewed (0) -
platforms/core-runtime/time/src/main/java/org/gradle/internal/time/Timer.java
*/ package org.gradle.internal.time; public interface Timer { /** * @return A human-consumable description of the elapsed time. */ String getElapsed(); /** * Return the elapsed time in ms. Returned value is always >= 0. * @return The elapsed time, in ms. */ long getElapsedMillis(); /** * Restart this timer. Sets elapsed time to zero. */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 20:20:17 UTC 2024 - 1K bytes - Viewed (0) -
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) -
src/time/sleep_test.go
} case 6: if timer.Reset(2 * Minute) { panic("shouldn't be active (2)") } // Stop and drain a long-duration timer. case 3, 5, 7: if !timer.Stop() { t.Logf("timer %d state %d Stop returned false", i, state) <-timer.C } // Start a short-duration timer we expect to select without blocking. case 8: if timer.Reset(0) { t.Fatal("timer.Reset returned true") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 22 16:33:57 UTC 2024 - 22.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 16:12:58 UTC 2024 - 8.6K bytes - Viewed (0) -
src/go/internal/gccgoimporter/testdata/time.gox
>) <type 2 chan <- <type 3 "Time" <type 4 struct { .time.sec <type -4>; .time.nsec <type -3>; .time.loc <type 5 *<type 6 "Location" <type 7 struct { .time.name <type -16>; .time.zone <type 8 [] <type 9 ".time.zone" <type 10 struct { .time.name <type -16>; .time.offset <type -11>; .time.isDST <type -15>; }>>>; .time.tx <type 11 [] <type 12 ".time.zoneTrans" <type 13 struct { .time.when <type -4>; .time.index <type -5>; .time.isstd <type -15>; .time.isutc <type -15>; }>>>; .time.cacheStart...
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 30 21:33:51 UTC 2021 - 7.3K bytes - Viewed (0)