- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 142 for Microseconds (0.16 sec)
-
src/syscall/timestruct.go
func TimevalToNsec(tv Timeval) int64 { return tv.Nano() } // NsecToTimeval converts a number of nanoseconds into a [Timeval]. func NsecToTimeval(nsec int64) Timeval { nsec += 999 // round up to microsecond usec := nsec % 1e9 / 1e3 sec := nsec / 1e9 if usec < 0 { usec += 1e6 sec-- } return setTimeval(sec, usec)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 958 bytes - Viewed (0) -
staging/src/k8s.io/apiserver/plugin/pkg/audit/log/backend_test.go
SourceIPs: []string{ "127.0.0.1", }, RequestReceivedTimestamp: metav1.NewMicroTime(time.Now().Truncate(time.Microsecond)), StageTimestamp: metav1.NewMicroTime(time.Now().Truncate(time.Microsecond)), AuditID: types.UID(uuid.New().String()), Stage: auditinternal.StageRequestReceived, Verb: "get",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 08 06:37:26 UTC 2022 - 5K bytes - Viewed (0) -
pkg/wasm/httpfetcher_test.go
c.handler(w, r, gotNumRequest) gotNumRequest++ })) defer ts.Close() fetcher := NewHTTPFetcher(DefaultHTTPRequestTimeout, DefaultHTTPRequestMaxRetries) fetcher.initialBackoff = time.Microsecond ctx, cancel := context.WithTimeout(context.Background(), c.timeout) defer cancel() b, err := fetcher.Fetch(ctx, ts.URL, false) if c.wantNumRequest != gotNumRequest {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 24 15:56:41 UTC 2023 - 7.5K bytes - Viewed (0) -
src/cmd/trace/viewer.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 1.4K bytes - Viewed (0) -
internal/s3select/parquet/reader.go
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: return nil, errors.New("Invalid LogicalType annotation found") } value = sql.FormatSQLTimestamp(time.Unix(0, 0).Add(duration)) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Apr 14 13:54:47 UTC 2022 - 4.5K bytes - Viewed (0) -
src/runtime/testdata/testprognet/signalexec.go
c := make(chan os.Signal, tries) signal.Notify(c, syscall.SIGWINCH) wg.Add(1) go func() { defer wg.Done() for range c { } }() for i := 0; i < tries; i++ { time.Sleep(time.Microsecond) wg.Add(2) go func() { defer wg.Done() cmd := exec.Command(os.Args[0], "Nop") cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr if err := cmd.Run(); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 1.3K bytes - Viewed (0) -
test/fixedbugs/issue11256.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 29 15:02:30 UTC 2015 - 1.1K bytes - Viewed (0) -
src/os/exec/exec_linux_test.go
// In particular this should be more than the number of threads // the garbage collector might create. const threads = 10 var wg sync.WaitGroup wg.Add(threads) ts := syscall.NsecToTimespec((100 * time.Microsecond).Nanoseconds()) for i := 0; i < threads; i++ { go func() { defer wg.Done() syscall.Nanosleep(&ts, nil) }() } wg.Wait()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 26 14:49:07 UTC 2022 - 1.2K bytes - Viewed (0) -
pkg/kube/controllers/queue_test.go
handles.Inc() return nil })) q.Add(types.NamespacedName{Name: "something"}) stop := make(chan struct{}) go q.Run(stop) retry.UntilOrFail(t, q.HasSynced, retry.Delay(time.Microsecond)) assert.Equal(t, handles.Load(), 1) q.Add(types.NamespacedName{Name: "something else"}) close(stop) assert.NoError(t, q.WaitForClose(time.Second)) // event 2 is guaranteed to happen from WaitForClose
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 15 16:18:19 UTC 2023 - 1.3K bytes - Viewed (0) -
src/runtime/mgclimit_test.go
} // Test transitioning the bucket to enable the GC. l.StartGCTransition(true, advance(109*time.Millisecond)) l.FinishGCTransition(advance(2*time.Millisecond + 1*time.Microsecond)) if expect := uint64((2*time.Millisecond + 1*time.Microsecond) * procs); l.Fill() != expect { t.Fatalf("expected fill of %d, got %d cpu-ns", expect, l.Fill()) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 13 16:02:20 UTC 2022 - 9K bytes - Viewed (0)