- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 142 for microsecond (0.22 sec)
-
src/time/example_test.go
// Output: I've got 4.5 hours of work left. } func ExampleDuration_Microseconds() { u, _ := time.ParseDuration("1s") fmt.Printf("One second is %d microseconds.\n", u.Microseconds()) // Output: // One second is 1000000 microseconds. } func ExampleDuration_Milliseconds() { u, _ := time.ParseDuration("1s") fmt.Printf("One second is %d milliseconds.\n", u.Milliseconds()) // Output:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 13 01:05:00 UTC 2024 - 22.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) -
pkg/apis/core/validation/events_test.go
Name string Old metav1.MicroTime New metav1.MicroTime Valid bool }{ { Name: "noop microsecond precision", Old: metav1.NewMicroTime(time.Unix(100, int64(5*time.Microsecond))), New: metav1.NewMicroTime(time.Unix(100, int64(5*time.Microsecond))), Valid: true, }, { Name: "noop nanosecond precision",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Sep 01 19:47:37 UTC 2022 - 37.2K 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/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) -
src/net/timeout_test.go
50 * time.Nanosecond, 100 * time.Nanosecond, 200 * time.Nanosecond, 500 * time.Nanosecond, 750 * time.Nanosecond, 1 * time.Microsecond, 5 * time.Microsecond, 25 * time.Microsecond, 250 * time.Microsecond, 500 * time.Microsecond, 1 * time.Millisecond, 5 * time.Millisecond, 100 * time.Millisecond, 250 * time.Millisecond, 500 * time.Millisecond, 1 * time.Second,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 18:06:55 UTC 2024 - 30K 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) -
tests/test_jsonable_encoder.py
class ModelWithCustomEncoder(BaseModel): dt_field: datetime @field_serializer("dt_field") def serialize_dt_field(self, dt): return dt.replace(microsecond=0, tzinfo=timezone.utc).isoformat() class ModelWithCustomEncoderSubclass(ModelWithCustomEncoder): pass model = ModelWithCustomEncoder(dt_field=datetime(2019, 1, 1, 8))
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 21:56:59 UTC 2024 - 9K bytes - Viewed (0)