Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 112 for timeEnd (0.15 sec)

  1. src/cmd/vendor/golang.org/x/telemetry/internal/upload/date.go

    		return time.Time{}, time.Time{}, fmt.Errorf("failed to parse TimeBegin: %v", err)
    	}
    	timeEnd, ok := parsed.Meta["TimeEnd"]
    	if !ok {
    		return time.Time{}, time.Time{}, fmt.Errorf("missing counter metadata for TimeEnd")
    	}
    	end, err = time.Parse(time.RFC3339, timeEnd)
    	if err != nil {
    		return time.Time{}, time.Time{}, fmt.Errorf("failed to parse TimeEnd: %v", err)
    	}
    	return begin, end, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:12:15 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. common/config/tslint.json

            "no-conditional-assignment": true,
            "no-consecutive-blank-lines": true,
            "no-console": {
                "severity": "warning",
                "options": ["debug", "info", "log", "time", "timeEnd", "trace"]
            },
            "no-shadowed-variable": false,
            "eofline": false
        },
        "jsRules": {},
        "rulesDirectory": []
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Sep 11 23:32:21 UTC 2019
    - 631 bytes
    - Viewed (0)
  3. pkg/kubelet/types/types_test.go

    	}
    }
    
    func TestNewTimestamp(t *testing.T) {
    	timeStart := time.Now()
    	timestamp := NewTimestamp()
    	timeEnd := time.Now()
    	assert.WithinDuration(t, timestamp.Get(), timeStart, timeEnd.Sub(timeStart))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 19 08:28:25 UTC 2022
    - 6.2K bytes
    - Viewed (0)
  4. docs_src/custom_request_and_route/tutorial003.py

            return custom_route_handler
    
    
    app = FastAPI()
    router = APIRouter(route_class=TimedRoute)
    
    
    @app.get("/")
    async def not_timed():
        return {"message": "Not timed"}
    
    
    @router.get("/timed")
    async def timed():
        return {"message": "It's the time of my life"}
    
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 1K bytes
    - Viewed (0)
  5. docs/en/docs/js/custom.js

                            useLines.push({
                                type: "input",
                                value: value
                            });
                        } else if (line.startsWith("// ")) {
                            saveBuffer();
                            const value = "💬 " + line.replace("// ", "").trimEnd();
                            useLines.push({
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 08 17:50:56 UTC 2021
    - 6.6K bytes
    - Viewed (0)
  6. pkg/ctrlz/ctrlz_test.go

    	server := startAndWaitForServer(t)
    	done := make(chan struct{}, 1)
    	go func() {
    		server.Close()
    		done <- struct{}{}
    	}()
    	select {
    	case <-done:
    	case <-time.After(5 * time.Second):
    		t.Fatal("Timed out waiting for listeningTestProbe to be called")
    	}
    }
    
    func TestSignals(t *testing.T) {
    	c := make(chan os.Signal, 1)
    	signal.Notify(c, syscall.SIGUSR1)
    	server := startAndWaitForServer(t)
    	defer server.Close()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 15 18:23:41 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_custom_request_and_route/test_tutorial003.py

    client = TestClient(app)
    
    
    def test_get():
        response = client.get("/")
        assert response.json() == {"message": "Not timed"}
        assert "X-Response-Time" not in response.headers
    
    
    def test_get_timed():
        response = client.get("/timed")
        assert response.json() == {"message": "It's the time of my life"}
        assert "X-Response-Time" in response.headers
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Jul 09 18:06:12 UTC 2020
    - 526 bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/finisher/finisher.go

    // by a ResultFunc after the request had timed out.
    // timedOutAt is the time the request had been timed out.
    // r is the result returned by the child goroutine.
    type PostTimeoutLoggerFunc func(timedOutAt time.Time, r *result)
    
    const (
    	// how much time the post-timeout receiver goroutine will wait for the sender
    	// (child goroutine executing ResultFunc) to send a result after the request.
    	// had timed out.
    	postTimeoutLoggerWait = 5 * time.Minute
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 07 14:20:33 UTC 2021
    - 6K bytes
    - Viewed (0)
  9. pkg/probe/exec/exec_test.go

    		// Timeout
    		{probe.Failure, false, true, "", remote.ErrCommandTimedOut.Error() + ": command testcmd timed out", fmt.Errorf("%w: command testcmd timed out", remote.ErrCommandTimedOut)},
    		// ExecProbeTimeout
    		{probe.Unknown, true, false, "", "", fmt.Errorf("%w: command testcmd timed out", remote.ErrCommandTimedOut)},
    	}
    
    	for i, test := range tests {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 08:58:18 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/AutobahnTester.kt

              response: Response?,
            ) {
              t.printStackTrace(System.out)
              latch.countDown()
            }
          },
        )
    
        check(latch.await(30, TimeUnit.SECONDS)) { "Timed out waiting for test $number to finish." }
        val endNanos = System.nanoTime()
        val tookMs = TimeUnit.NANOSECONDS.toMillis(endNanos - startNanos.get())
        println("Took ${tookMs}ms")
      }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top