- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 47 for Elapsed (0.06 sec)
-
api/maven-api-core/src/main/java/org/apache/maven/api/MonotonicClock.java
public static Instant start() { return get().startInstant(); } /** * Returns the elapsed time since clock initialization. * This is a convenience method equivalent to {@code get().elapsedTime()}. * * @return the duration since clock initialization */ public static Duration elapsed() { return get().elapsedTime(); } /**
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Wed Jan 15 06:28:29 UTC 2025 - 5.6K bytes - Viewed (0) -
guava/src/com/google/common/base/Ticker.java
/** * A time source; returns a time value representing the number of nanoseconds elapsed since some * fixed but arbitrary point in time. Note that most users should use {@link Stopwatch} instead of * interacting with this class directly. * * <p><b>Warning:</b> this interface can only be used to measure elapsed time, not wall time. * * @author Kevin Bourrillion
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 1.8K bytes - Viewed (0) -
logger/slog.go
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Mon Jul 28 09:34:58 UTC 2025 - 2.3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/AbstractConfigHelperTest.java
long endTime = System.currentTimeMillis(); long elapsed = endTime - startTime; assertTrue("Expected at least 15ms sleep, got " + elapsed + "ms", elapsed >= 15); // Generous tolerance for CI environments like GitHub Actions assertTrue("Expected less than 200ms sleep, got " + elapsed + "ms", elapsed < 200); } public void test_waitForNext_withZeroInterval() {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 00:03:47 UTC 2025 - 4.7K bytes - Viewed (0) -
api/maven-api-core/src/test/java/org/apache/maven/api/MonotonicClockTest.java
} @Test @DisplayName("MonotonicClock elapsed time should increase") void testElapsedTime() throws InterruptedException { Duration initial = MonotonicClock.elapsed(); Thread.sleep(50); // Longer delay for more reliable measurement Duration later = MonotonicClock.elapsed(); assertTrue(later.compareTo(initial) > 0, "Elapsed time should increase"); assertTrue(
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Wed Jan 15 06:28:29 UTC 2025 - 5.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/StopwatchTest.java
ticker.advance(2); assertEquals(0, stopwatch.elapsed(NANOSECONDS)); stopwatch.start(); ticker.advance(3); assertEquals(3, stopwatch.elapsed(NANOSECONDS)); } public void testReset_whileRunning() { ticker.advance(1); stopwatch.start(); assertEquals(0, stopwatch.elapsed(NANOSECONDS)); ticker.advance(2); assertEquals(2, stopwatch.elapsed(NANOSECONDS)); stopwatch.reset();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 6.1K bytes - Viewed (0) -
cmd/rebalance-admin.go
totalBytesToRebal := float64(ps.InitCapacity)*meta.PercentFreeGoal - float64(ps.InitFreeSpace) elapsed := time.Since(ps.Info.StartTime) eta := time.Duration(totalBytesToRebal * float64(elapsed) / float64(ps.Bytes)) if !ps.Info.EndTime.IsZero() { stopTime = ps.Info.EndTime } if !stopTime.IsZero() { // rebalance is stopped or completed elapsed = stopTime.Sub(ps.Info.StartTime) eta = 0 }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 3.8K bytes - Viewed (0) -
logger/logger.go
} case elapsed > l.SlowThreshold && l.SlowThreshold != 0 && l.LogLevel >= Warn: sql, rows := fc() slowLog := fmt.Sprintf("SLOW SQL >= %v", l.SlowThreshold) if rows == -1 { l.Printf(l.traceWarnStr, utils.FileWithLineNum(), slowLog, float64(elapsed.Nanoseconds())/1e6, "-", sql) } else { l.Printf(l.traceWarnStr, utils.FileWithLineNum(), slowLog, float64(elapsed.Nanoseconds())/1e6, rows, sql)
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Sun Jan 12 10:19:28 UTC 2025 - 6.3K bytes - Viewed (0) -
cmd/endpoint.go
) if orchestrated && hostResolveToLocalhost(endpoints[i]) { // time elapsed timeElapsed := time.Since(startTime) // log error only if more than a second has elapsed if timeElapsed > time.Second { reqInfo.AppendTags("elapsedTime", humanize.RelTime(startTime, startTime.Add(timeElapsed), "elapsed", "", )) ctx := logger.SetReqInfo(GlobalContext,
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Sun Mar 30 00:56:02 UTC 2025 - 34.4K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/RecordingConnectionListener.kt
) : ConnectionListener() { val eventSequence: Deque<ConnectionEvent> = ConcurrentLinkedDeque() private val forbiddenLocks = mutableSetOf<Any>() /** The timestamp of the last taken event, used to measure elapsed time between events. */ private var lastTimestampNs: Long? = null /** Confirm that the thread does not hold a lock on `lock` during the callback. */ fun forbidLock(lock: Any) { forbiddenLocks.add(lock) }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri May 30 21:28:20 UTC 2025 - 5.7K bytes - Viewed (0)