Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 121 for 1000000000 (0.07 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/resource/scale_int_test.go

    	"testing"
    )
    
    func TestScaledValueInternal(t *testing.T) {
    	tests := []struct {
    		unscaled *big.Int
    		scale    int
    		newScale int
    
    		want int64
    	}{
    		// remain scale
    		{big.NewInt(1000), 0, 0, 1000},
    
    		// scale down
    		{big.NewInt(1000), 0, -3, 1},
    		{big.NewInt(1000), 3, 0, 1},
    		{big.NewInt(0), 3, 0, 0},
    
    		// always round up
    		{big.NewInt(999), 3, 0, 1},
    		{big.NewInt(500), 3, 0, 1},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 11 03:04:14 UTC 2018
    - 2.1K bytes
    - Viewed (0)
  2. src/runtime/internal/wasitest/tcpecho_test.go

    	// default.
    	if os.Getenv("GOWASIENABLERACYTEST") != "1" {
    		t.Skip("skipping WASI test with unavoidable race condition")
    	}
    	var host string
    	port := rand.Intn(10000) + 40000
    	for attempts := 0; attempts < 10; attempts++ {
    		host = fmt.Sprintf("127.0.0.1:%d", port)
    		l, err := net.Listen("tcp", host)
    		if err == nil {
    			l.Close()
    			break
    		}
    		port++
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 22:01:11 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. docs/features/events.md

        long nowNanos = System.nanoTime();
        if (name.equals("callStart")) {
          callStartNanos = nowNanos;
        }
        long elapsedNanos = nowNanos - callStartNanos;
        System.out.printf("%.3f %s%n", elapsedNanos / 1000000000d, name);
      }
    
      @Override public void callStart(Call call) {
        printEvent("callStart");
      }
    
      @Override public void callEnd(Call call) {
        printEvent("callEnd");
      }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 7.7K bytes
    - Viewed (0)
  4. src/syscall/fs_js.go

    	atime := int64(jsSt.Get("atimeMs").Int())
    	st.Atime = atime / 1000
    	st.AtimeNsec = (atime % 1000) * 1000000
    	mtime := int64(jsSt.Get("mtimeMs").Int())
    	st.Mtime = mtime / 1000
    	st.MtimeNsec = (mtime % 1000) * 1000000
    	ctime := int64(jsSt.Get("ctimeMs").Int())
    	st.Ctime = ctime / 1000
    	st.CtimeNsec = (ctime % 1000) * 1000000
    }
    
    func Stat(path string, st *Stat_t) error {
    	if err := checkPath(path); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 11 18:19:17 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  5. test/escape_slice.go

    				out[i] = inkv
    				continue NextVar
    			}
    		}
    		out = append(out, inkv)
    	}
    	return out
    }
    
    const (
    	IPv4len = 4
    	IPv6len = 16
    )
    
    var v4InV6Prefix = []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xff, 0xff}
    
    func IPv4(a, b, c, d byte) IP {
    	p := make(IP, IPv6len) // ERROR "make\(IP, 16\) escapes to heap"
    	copy(p, v4InV6Prefix)
    	p[12] = a
    	p[13] = b
    	p[14] = c
    	p[15] = d
    	return p
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:50:24 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  6. src/net/ip_test.go

    		[]byte("192.0.2.1"),
    		nil,
    	},
    	{
    		IP{0, 0, 0, 0},
    		"0.0.0.0",
    		[]byte("0.0.0.0"),
    		nil,
    	},
    
    	// IPv4-mapped IPv6 address
    	{
    		IP{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xff, 0xff, 192, 0, 2, 1},
    		"192.0.2.1",
    		[]byte("192.0.2.1"),
    		nil,
    	},
    	{
    		IP{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xff, 0xff, 0, 0, 0, 0},
    		"0.0.0.0",
    		[]byte("0.0.0.0"),
    		nil,
    	},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 01:17:29 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  7. samples/guide/src/main/java/okhttp3/recipes/PrintEventsNonConcurrent.java

          if (name.equals("callStart")) {
            callStartNanos = nowNanos;
          }
          long elapsedNanos = nowNanos - callStartNanos;
          System.out.printf("%.3f %s%n", elapsedNanos / 1000000000d, name);
        }
    
        @Override public void callStart(Call call) {
          printEvent("callStart");
        }
    
        @Override public void proxySelectStart(Call call, HttpUrl url) {
          printEvent("proxySelectStart");
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Feb 16 23:20:49 UTC 2020
    - 5.3K bytes
    - Viewed (0)
  8. pkg/kubelet/stats/cri_stats_provider_test.go

    					Timestamp: 1,
    					UsageCoreNanoSeconds: &runtimeapi.UInt64Value{
    						Value: 10000000000,
    					},
    				},
    			},
    			cpuUsageCache: map[string]*cpuUsageRecord{
    				"1": {
    					stats: &runtimeapi.CpuUsage{
    						Timestamp: 0,
    						UsageCoreNanoSeconds: &runtimeapi.UInt64Value{
    							Value: 10000000000,
    						},
    					},
    				},
    			},
    			expected: &value0,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  9. src/math/big/floatmarsh_test.go

    	}{
    		{
    			[]byte{0x1, 0x2a, 0x20, 0x20, 0x20, 0x20, 0x0, 0x20, 0x20, 0x20, 0x0, 0x20, 0x20, 0x20, 0x20, 0x0, 0x0, 0x0, 0x0, 0xc},
    			"Float.GobDecode: msb not set in last word",
    		},
    		{
    			[]byte{1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    			"Float.GobDecode: nonzero finite number with empty mantissa",
    		},
    	} {
    		err := NewFloat(0).GobDecode(tc.buf)
    		if err == nil || !strings.HasPrefix(err.Error(), tc.msg) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 23 18:18:05 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  10. samples/guide/src/main/java/okhttp3/recipes/PrintEvents.java

          this.callStartNanos = callStartNanos;
        }
    
        private void printEvent(String name) {
          long elapsedNanos = System.nanoTime() - callStartNanos;
          System.out.printf("%04d %.3f %s%n", callId, elapsedNanos / 1000000000d, name);
        }
    
        @Override public void proxySelectStart(Call call, HttpUrl url) {
          printEvent("proxySelectStart");
        }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Feb 16 23:20:49 UTC 2020
    - 6.1K bytes
    - Viewed (0)
Back to top