- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 73 for timeFn (0.17 sec)
-
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/cmd/vendor/golang.org/x/telemetry/internal/upload/date.go
} timeEnd, ok := parsed.Meta["TimeEnd"] if !ok { return time.Time{}, time.Time{}, fmt.Errorf("missing counter metadata for TimeEnd") } end, err = time.Parse(time.RFC3339, timeEnd) if err != nil { return time.Time{}, time.Time{}, fmt.Errorf("failed to parse TimeEnd: %v", err) } return begin, end, nil } // avoid parsing count files multiple times type parsedCache struct { mu sync.Mutex
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 21:12:15 UTC 2024 - 2.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/time/internal_test.go
// bad when on update), or other timers will hang (if the timer in a // heap is in a bad state). There is no reliable way to test this, but // we wait on a short timer here as a smoke test (alternatively, timers // in later tests may hang). <-After(25 * Millisecond) } var ( MinMonoTime = Time{wall: 1 << 63, ext: -1 << 63, loc: UTC} MaxMonoTime = Time{wall: 1 << 63, ext: 1<<63 - 1, loc: UTC}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 03 14:56:37 UTC 2024 - 2.2K bytes - Viewed (0) -
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)