- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 58 for rduration (0.05 sec)
-
android/guava/src/com/google/common/cache/CacheBuilder.java
@SuppressWarnings("GoodTime") // Duration decomposition @IgnoreJRERequirement // No more dangerous than wherever the caller got the Duration from private static long toNanosSaturated(Duration duration) { // Using a try/catch seems lazy, but the catch block will rarely get invoked (except for // durations longer than approximately +/- 292 years). try { return duration.toNanos();Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Oct 08 18:55:33 UTC 2025 - 51.9K bytes - Viewed (0) -
guava/src/com/google/common/cache/CacheBuilder.java
@SuppressWarnings("GoodTime") // duration decomposition private static long toNanosSaturated(Duration duration) { // Using a try/catch seems lazy, but the catch block will rarely get invoked (except for // durations longer than approximately +/- 292 years). try { return duration.toNanos(); } catch (ArithmeticException tooBig) { return duration.isNegative() ? Long.MIN_VALUE : Long.MAX_VALUE;Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Oct 08 18:55:33 UTC 2025 - 51.6K bytes - Viewed (0) -
cmd/data-scanner-metric.go
startTime := time.Now() return func(custom map[string]string) { duration := time.Since(startTime) atomic.AddUint64(&p.operations[s], 1) if s < scannerMetricLastRealtime { p.latency[s].add(duration) } if s > scannerMetricStartTrace && globalTrace.NumSubscribers(madmin.TraceScanner) > 0 { globalTrace.Publish(scannerTrace(s, startTime, duration, strings.Join(paths, " "), custom)) } } }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Wed Oct 01 06:06:01 UTC 2025 - 9.4K bytes - Viewed (0) -
guava/src/com/google/common/base/Stopwatch.java
import com.google.errorprone.annotations.CanIgnoreReturnValue; import com.google.j2objc.annotations.J2ObjCIncompatible; import java.time.Duration; import java.util.concurrent.TimeUnit; /** * An object that accurately measures <i>elapsed time</i>: the measured duration between two * successive readings of "now" in the same process. * * <p>In contrast, <i>wall time</i> is a reading of "now" as given by a method like
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Oct 08 18:55:33 UTC 2025 - 9.2K bytes - Viewed (0) -
docs_src/custom_request_and_route/tutorial003_py310.py
before = time.time() response: Response = await original_route_handler(request) duration = time.time() - before response.headers["X-Response-Time"] = str(duration) print(f"route duration: {duration}") print(f"route response: {response}") print(f"route response headers: {response.headers}") return response
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 10 08:55:32 UTC 2025 - 1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java
assertThrows(IllegalStateException.class, () -> builder2.weakValues()); } @GwtIncompatible // Duration @IgnoreJRERequirement // No more dangerous than wherever the caller got the Duration from public void testLargeDurationsAreOk() { Duration threeHundredYears = Duration.ofDays(365 * 300); CacheBuilder<Object, Object> unused = CacheBuilder.newBuilder()
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 30 22:03:28 UTC 2025 - 25.4K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/OkHttpClient.kt
* all must complete within one timeout period. * * The default value is 0 which imposes no timeout. */ @IgnoreJRERequirement fun callTimeout(duration: Duration) = apply { callTimeout(duration.toMillis(), MILLISECONDS) } /** * Sets the default timeout for complete calls. A value of 0 means no timeout, otherwise valuesRegistered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Oct 07 21:55:03 UTC 2025 - 51.4K bytes - Viewed (0) -
docs_src/extra_data_types/tutorial001_py39.py
): start_process = start_datetime + process_after duration = end_datetime - start_process return { "item_id": item_id, "start_datetime": start_datetime, "end_datetime": end_datetime, "process_after": process_after, "repeat_at": repeat_at, "start_process": start_process, "duration": duration,Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 755 bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/SitemapVideo.java
} /** * Gets the duration of the video in seconds. * @return the duration */ public String getDuration() { return duration; } /** * Sets the duration of the video in seconds. * @param duration the duration to set */ public void setDuration(final String duration) { this.duration = duration; } /**Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Nov 13 13:34:36 UTC 2025 - 8.9K bytes - Viewed (0) -
docs_src/custom_request_and_route/tutorial003_py39.py
before = time.time() response: Response = await original_route_handler(request) duration = time.time() - before response.headers["X-Response-Time"] = str(duration) print(f"route duration: {duration}") print(f"route response: {response}") print(f"route response headers: {response.headers}") return response
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 1K bytes - Viewed (0)