Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 190 for nanotime (0.13 sec)

  1. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/concurrent/Instants.groovy

                }
                throw new IllegalStateException("Timeout waiting for instant '$name' to be defined by another thread.")
            }
        }
    
        private long monotonicClockMillis() {
            System.nanoTime() / 1000000L
        }
    
        def getProperty(String name) {
            synchronized (lock) {
                if (Thread.currentThread() != mainThread) {
                    return now(name)
                } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. src/runtime/os_openbsd_mips64.go

    // license that can be found in the LICENSE file.
    
    package runtime
    
    //go:nosplit
    func cputicks() int64 {
    	// runtime·nanotime() is a poor approximation of CPU ticks that is enough for the profiler.
    	return nanotime()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 329 bytes
    - Viewed (0)
  3. src/runtime/os_darwin_arm64.go

    // license that can be found in the LICENSE file.
    
    package runtime
    
    //go:nosplit
    func cputicks() int64 {
    	// runtime·nanotime() is a poor approximation of CPU ticks that is enough for the profiler.
    	return nanotime()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 329 bytes
    - Viewed (0)
  4. src/runtime/lock_wasip1.go

    func notetsleepg(n *note, ns int64) bool {
    	gp := getg()
    	if gp == gp.m.g0 {
    		throw("notetsleepg on g0")
    	}
    
    	deadline := nanotime() + ns
    	for {
    		if n.key != 0 {
    			return true
    		}
    		if sched_yield() != 0 {
    			throw("sched_yield failed")
    		}
    		Gosched()
    		if ns >= 0 && nanotime() >= deadline {
    			return false
    		}
    	}
    }
    
    func beforeIdle(int64, int64) (*g, bool) {
    	return nil, false
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 21:02:20 UTC 2023
    - 2K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/connection/ConnectionPoolTest.kt

        assertThat(pool.connectionCount()).isEqualTo(1)
      }
    
      @Test fun connectionPreWarmingHttp2() {
        taskFaker.advanceUntil(System.nanoTime())
        val expireSooner = taskFaker.nanoTime + 1_000_000_000_000
        val expireLater = taskFaker.nanoTime + 2_000_000_000_000
    
        routePlanner.autoGeneratePlans = true
        val address = routePlanner.address
        val pool = routePlanner.pool
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Apr 24 04:40:49 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  6. src/runtime/os_plan9_arm.go

    package runtime
    
    func checkgoarm() {
    	return // TODO(minux)
    }
    
    //go:nosplit
    func cputicks() int64 {
    	// runtime·nanotime() is a poor approximation of CPU ticks that is enough for the profiler.
    	return nanotime()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 375 bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/InterruptionUtil.java

          long end = System.nanoTime() + remainingNanos;
    
          while (true) {
            try {
              // TimeUnit.timedJoin() treats negative timeouts just like zero.
              NANOSECONDS.timedJoin(thread, remainingNanos);
              return;
            } catch (InterruptedException e) {
              interrupted = true;
              remainingNanos = end - System.nanoTime();
            }
          }
        } finally {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

        if (profileTests) runTestProfiled();
        else super.runTest();
      }
    
      protected void runTestProfiled() throws Throwable {
        long t0 = System.nanoTime();
        try {
          super.runTest();
        } finally {
          long elapsedMillis = (System.nanoTime() - t0) / (1000L * 1000L);
          if (elapsedMillis >= profileThreshold)
            System.out.printf("%n%s: %d%n", toString(), elapsedMillis);
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 19:21:11 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  9. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt

              }
            }
          }
    
          val startNs = System.nanoTime()
          val response: Response
          try {
            response = chain.proceed(request)
          } catch (e: Exception) {
            logger.log("<-- HTTP FAILED: $e")
            throw e
          }
    
          val tookMs = TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - startNs)
    
          val responseBody = response.body!!
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 06 09:14:38 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  10. src/runtime/os_openbsd_arm.go

    		exit(1)
    	}
    }
    
    //go:nosplit
    func cputicks() int64 {
    	// runtime·nanotime() is a poor approximation of CPU ticks that is enough for the profiler.
    	return nanotime()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 662 bytes
    - Viewed (0)
Back to top