Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 64 for nanotime (0.22 sec)

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

     * limitations under the License.
     */
    
    package org.gradle.test.fixtures.concurrent
    
    class TestLogger {
        private final long startTime = System.nanoTime()
    
        void log(def msg) {
            println "* [${(long) ((System.nanoTime() - startTime) / 1000000L)}ms] [${Thread.currentThread().name}] ${msg}"
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 886 bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/interval/impl/HostIntervalControllerTest.java

            for (int i = 0; i < numTasks; i++) {
                tasks.add(testCallable);
            }
    
            // 時間取得
            final long time = System.nanoTime();
    
            // Callableタスク(複数)を実行する
            final ExecutorService executor = Executors.newFixedThreadPool(numTasks);
            try {
                final List<Future<Integer>> futures = executor.invokeAll(tasks);
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. src/runtime/os_openbsd_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. okhttp/src/test/java/okhttp3/RecordingCallback.kt

        while (true) {
          val i = responses.iterator()
          while (i.hasNext()) {
            val recordedResponse = i.next()
            if (recordedResponse.request.url.equals(url)) {
              i.remove()
              return recordedResponse
            }
          }
          val nowMillis = TimeUnit.NANOSECONDS.toMillis(System.nanoTime())
          if (nowMillis >= timeoutMillis) break
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  5. platforms/core-runtime/time/src/main/java/org/gradle/internal/time/Time.java

            return CLOCK.getCurrentTime();
        }
    
        /**
         * Measures elapsed time.
         *
         * Timers use System.nanoTime() to measure elapsed time,
         * and are therefore not synchronized with {@link #clock()} or the system wall clock.
         *
         * System.nanoTime() does not consider time elapsed while the system is in hibernation.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:20:17 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. src/runtime/os_linux_arm.go

    	case _AT_PLATFORM:
    		cpu.Platform = gostringnocopy((*byte)(unsafe.Pointer(val)))
    	}
    }
    
    func osArchInit() {}
    
    //go:nosplit
    func cputicks() int64 {
    	// 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
    - 1.5K bytes
    - Viewed (0)
  7. platforms/core-runtime/time/src/test/groovy/org/gradle/internal/time/DefaultTimerTest.groovy

    package org.gradle.internal.time
    
    import spock.lang.Specification
    
    import java.util.concurrent.TimeUnit
    
    class DefaultTimerTest extends Specification {
    
        def timeSource = Mock(TimeSource) {
            1 * nanoTime() >> 0
        }
    
        def timer = new DefaultTimer(timeSource)
    
        def testOnlySecondsTwoDigits() throws Exception {
            when:
            setTime(51243)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:20:17 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  8. guava/src/com/google/common/util/concurrent/DirectExecutorService.java

            if (shutdown && runningTasks == 0) {
              return true;
            } else if (nanos <= 0) {
              return false;
            } else {
              long now = System.nanoTime();
              TimeUnit.NANOSECONDS.timedWait(lock, nanos);
              nanos -= System.nanoTime() - now; // subtract the actual time we waited
            }
          }
        }
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 15 10:40:05 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  9. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/LoggingEventListener.kt

    class LoggingEventListener private constructor(
      private val logger: HttpLoggingInterceptor.Logger,
    ) : EventListener() {
      private var startNs: Long = 0
    
      override fun callStart(call: Call) {
        startNs = System.nanoTime()
    
        logWithTime("callStart: ${call.request()}")
      }
    
      override fun proxySelectStart(
        call: Call,
        url: HttpUrl,
      ) {
        logWithTime("proxySelectStart: $url")
      }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 01 11:07:32 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/DirectExecutorService.java

            if (shutdown && runningTasks == 0) {
              return true;
            } else if (nanos <= 0) {
              return false;
            } else {
              long now = System.nanoTime();
              TimeUnit.NANOSECONDS.timedWait(lock, nanos);
              nanos -= System.nanoTime() - now; // subtract the actual time we waited
            }
          }
        }
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 15 10:40:05 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top