Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 444 for ts (0.03 sec)

  1. src/cmd/cgo/internal/testcarchive/testdata/main4.c

    	if (i != 0) {
    		fprintf(stderr, "pthread_kill: %s\n", strerror(i));
    		exit(EXIT_FAILURE);
    	}
    
    	// Wait until the signal has been delivered.
    	i = 0;
    	while (SIGIOCount() == 0) {
    		ts.tv_sec = 0;
    		ts.tv_nsec = 1000000;
    		nanosleep(&ts, NULL);
    		i++;
    		if (i > 5000) {
    			fprintf(stderr, "looping too long waiting for signal\n");
    			exit(EXIT_FAILURE);
    		}
    	}
    
    	// We should still be on the same signal stack.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/net/util_test.go

    	return &lb
    }
    
    func TestIsConnectionReset(t *testing.T) {
    	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()
    
    	u, err := url.Parse(ts.URL)
    	if err != nil {
    		t.Fatalf("failed to parse URL from %q: %v", ts.URL, err)
    	}
    	lb := newLB(t, u.Host)
    	defer lb.ln.Close()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 20 19:02:55 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testcarchive/testdata/main2.c

    		die("kill");
    	}
    
    	if (verbose) {
    		printf("waiting for sigioSeen\n");
    	}
    
    	// Wait until the signal has been delivered.
    	i = 0;
    	while (!sigioSeen) {
    		ts.tv_sec = 0;
    		ts.tv_nsec = 1000000;
    		nanosleep(&ts, NULL);
    		i++;
    		if (i > 5000) {
    			fprintf(stderr, "looping too long waiting for SIGIO\n");
    			exit(EXIT_FAILURE);
    		}
    	}
    
    	if (verbose) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  4. src/net/http/httputil/example_test.go

    func ExampleDumpResponse() {
    	const body = "Go is a general-purpose language designed with systems programming in mind."
    	ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		w.Header().Set("Date", "Wed, 19 Jul 1972 19:00:00 GMT")
    		fmt.Fprintln(w, body)
    	}))
    	defer ts.Close()
    
    	resp, err := http.Get(ts.URL)
    	if err != nil {
    		log.Fatal(err)
    	}
    	defer resp.Body.Close()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 16 20:01:36 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  5. src/go/ast/print_test.go

    	var buf strings.Builder
    	for _, test := range tests {
    		buf.Reset()
    		if err := Fprint(&buf, nil, test.x, nil); err != nil {
    			t.Errorf("Fprint failed: %s", err)
    		}
    		if s, ts := trim(buf.String()), trim(test.s); s != ts {
    			t.Errorf("got:\n%s\nexpected:\n%s\n", s, ts)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 15:35:30 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go

    func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
    	var ts *Timespec
    	if timeout != nil {
    		ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
    	}
    	return pselect6(nfd, r, w, e, ts, nil)
    }
    
    //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
    //sys	setfsgid(gid int) (prev int, err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  7. src/runtime/sys_openbsd2.go

    			println("runtime: errno", -errno)
    			throw("clock_gettime failed")
    		})
    	}
    	return ts.tv_sec*1e9 + int64(ts.tv_nsec)
    }
    func clock_gettime_trampoline()
    
    //go:nosplit
    func walltime() (int64, int32) {
    	var ts timespec
    	args := struct {
    		clock_id int32
    		tp       unsafe.Pointer
    	}{_CLOCK_REALTIME, unsafe.Pointer(&ts)}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/windows/syscall.go

    // See mksyscall.pl.
    var _zero uintptr
    
    func (ts *Timespec) Unix() (sec int64, nsec int64) {
    	return int64(ts.Sec), int64(ts.Nsec)
    }
    
    func (tv *Timeval) Unix() (sec int64, nsec int64) {
    	return int64(tv.Sec), int64(tv.Usec) * 1000
    }
    
    func (ts *Timespec) Nano() int64 {
    	return int64(ts.Sec)*1e9 + int64(ts.Nsec)
    }
    
    func (tv *Timeval) Nano() int64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  9. src/syscall/syscall_linux_arm64.go

    func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
    	var ts *Timespec
    	if timeout != nil {
    		ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
    	}
    	return pselect(nfd, r, w, e, ts, nil)
    }
    
    //sysnb	Gettimeofday(tv *Timeval) (err error)
    
    func setTimespec(sec, nsec int64) Timespec {
    	return Timespec{Sec: sec, Nsec: nsec}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/node_matchers.h

    // order.
    template <typename... Ts>
    impl::NodeMatcherProperties CtrlDeps(Ts... control_deps) {
      return impl::CtrlDeps({control_deps...});
    }
    
    // Matches a constant node with value `val`.
    impl::NodeMatcherProperties ConstantValue(
        const ::tensorflow::Input::Initializer& val);
    
    // The main gmock matcher.  See file comment for example usage.
    template <typename... Ts>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 8.1K bytes
    - Viewed (0)
Back to top