- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 444 for ts (0.02 sec)
-
pkg/test/loadbalancersim/timeseries/instance.go
mutex sync.Mutex } func (ts *Instance) AddObservation(val float64, t time.Time) { ts.mutex.Lock() defer ts.mutex.Unlock() ts.data = append(ts.data, val) ts.times = append(ts.times, t) } func (ts *Instance) AddAll(o *Instance) { ts.mutex.Lock() defer ts.mutex.Unlock() oData, oTimes := o.Series() ts.data = append(ts.data, oData...) ts.times = append(ts.times, oTimes...) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Feb 03 18:19:25 UTC 2022 - 1.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/timestruct.go
} // Unix returns the time stored in ts as seconds plus nanoseconds. func (ts *Timespec) Unix() (sec int64, nsec int64) { return int64(ts.Sec), int64(ts.Nsec) } // Unix returns the time stored in tv as seconds plus nanoseconds. func (tv *Timeval) Unix() (sec int64, nsec int64) { return int64(tv.Sec), int64(tv.Usec) * 1000 } // Nano returns the time stored in ts as nanoseconds. func (ts *Timespec) Nano() int64 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 2.2K bytes - Viewed (0) -
test/fixedbugs/bug333.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Issue 1709 package main func main() { type Ts string var ts Ts _ = []byte(ts) } /* bug333.go:14: cannot use ts (type Ts) as type string in function argument
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 355 bytes - Viewed (0) -
pkg/ptr/pointer_test.go
one := 1 assertEqual(t, OrEmpty[int](nil), 0) assertEqual(t, OrEmpty(&one), 1) } func TestTypeName(t *testing.T) { type ts struct{} assertEqual(t, TypeName[int](), "int") assertEqual(t, TypeName[string](), "string") assertEqual(t, TypeName[ts](), "ptr.ts") assertEqual(t, TypeName[*ts](), "*ptr.ts")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon May 08 23:31:08 UTC 2023 - 1.6K bytes - Viewed (0) -
src/net/http/httptest/example_test.go
} fmt.Printf("%s", greeting) // Output: Hello, client } func ExampleServer_hTTP2() { ts := httptest.NewUnstartedServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "Hello, %s", r.Proto) })) ts.EnableHTTP2 = true ts.StartTLS() defer ts.Close() res, err := ts.Client().Get(ts.URL) if err != nil { log.Fatal(err) } greeting, err := io.ReadAll(res.Body) res.Body.Close()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 20 18:41:18 UTC 2020 - 2K bytes - Viewed (0) -
src/runtime/time.go
} // deleteMin removes timer 0 from ts. // ts must be locked. func (ts *timers) deleteMin() { assertLockHeld(&ts.mu) t := ts.heap[0].timer if t.ts != ts { throw("wrong timers") } t.ts = nil last := len(ts.heap) - 1 if last > 0 { ts.heap[0] = ts.heap[last] } ts.heap[last] = timerWhen{} ts.heap = ts.heap[:last] if last > 0 { ts.siftDown(0) } ts.updateMinWhenHeap()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 29 14:36:24 UTC 2024 - 37.5K bytes - Viewed (0) -
src/cmd/compile/internal/types2/sizes_test.go
if got := sizes.Sizeof(ts); got != 20 { t.Errorf("Sizeof(%v) with WordSize 4 = %d want 20", ts, got) } sizes = types2.StdSizes{WordSize: 8, MaxAlign: 8} if got := sizes.Sizeof(ts); got != 40 { t.Errorf("Sizeof(%v) with WordSize 8 = %d want 40", ts, got) } } // go.dev/issue/16464 func TestAlignofNaclSlice(t *testing.T) { const src = ` package main var s struct { x *int y []byte } `
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 16 21:00:48 UTC 2023 - 4.1K bytes - Viewed (0) -
cmd/metrics-v3-system-cpu.go
m.Set(sysCPULoadPerc, math.Round(perc*100)/100) } ts := cpuMetrics.TimesStat tot := ts.User + ts.System + ts.Idle + ts.Iowait + ts.Nice + ts.Steal cpuUserVal := math.Round(ts.User/tot*100*100) / 100 m.Set(sysCPUUser, cpuUserVal) cpuSystemVal := math.Round(ts.System/tot*100*100) / 100 m.Set(sysCPUSystem, cpuSystemVal) cpuNiceVal := math.Round(ts.Nice/tot*100*100) / 100 m.Set(sysCPUNice, cpuNiceVal)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Apr 23 23:56:12 UTC 2024 - 3K bytes - Viewed (0) -
src/runtime/cgo/gcc_windows_amd64.c
{ setg_gcc = setg; tls_g = (DWORD *)tlsg; } void _cgo_sys_thread_start(ThreadStart *ts) { _cgo_beginthread(threadentry, ts); } extern void crosscall1(void (*fn)(void), void (*setg_gcc)(void*), void *g); static void threadentry(void *v) { ThreadStart ts; ts = *(ThreadStart*)v; free(v); // minit queries stack bounds from the OS. /*
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Aug 12 03:56:28 UTC 2023 - 1K bytes - Viewed (0) -
src/net/http/client_test.go
func testRedirectCookiesJar(t *testing.T, mode testMode) { var ts *httptest.Server ts = newClientServerTest(t, mode, echoCookiesRedirectHandler).ts c := ts.Client() c.Jar = new(TestJar) u, _ := url.Parse(ts.URL) c.Jar.SetCookies(u, []*Cookie{expectedCookies[0]}) resp, err := c.Get(ts.URL) if err != nil { t.Fatalf("Get: %v", err) } resp.Body.Close()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:30:50 UTC 2024 - 63.8K bytes - Viewed (0)