- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 29 for duration (1.28 sec)
-
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) -
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) -
tests/test_tutorial/test_extra_data_types/test_tutorial001.py
"repeat_at": "15:30:00", "process_after": 300, } expected_response = data.copy() expected_response.update( { "start_process": "2018-12-22T14:05:00+00:00", "duration": 176_100, "item_id": item_id, } ) response = client.put(f"/items/{item_id}", json=data) assert response.status_code == 200, response.text assert response.json() == expected_response
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 6.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/auth/chain/CommandChain.java
* This thread sleeps for the specified timeout duration and terminates the process if it hasn't finished. */ protected static class MonitorThread extends Thread { /** The process to monitor. */ private final Process process; /** The timeout duration in milliseconds. */ private final long timeout;
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Nov 28 16:29:12 UTC 2025 - 14.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java
} /** Determines whether the given method takes a Duration as its last parameter. */ private static boolean isDurationBased(Method method) { Class<?>[] parameterTypes = method.getParameterTypes(); return parameterTypes.length >= 1 && parameterTypes[parameterTypes.length - 1] == Duration.class; } /** Determines whether the given method returns a boolean value. */
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 21:00:51 UTC 2025 - 27.1K bytes - Viewed (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/GAVUtilsTest.java
long endTime = System.currentTimeMillis(); // Performance assertion - should complete within reasonable time long duration = endTime - startTime; assertTrue(duration < 5000, "Artifact computation should complete within 5 seconds for 100 POMs"); // Verify correctness assertNotNull(gavs, "Artifact set should not be null");
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 17.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/taglib/FessFunctions.java
} return date.format(DateTimeFormatter.ofPattern(format, Locale.ROOT)); } /** * Formats a duration in milliseconds to a human-readable string. * * @param durationMillis the duration in milliseconds * @return formatted duration string (e.g., "2 days 14:30:25.123" or "14:30:25.123") */ public static String formatDuration(final long durationMillis) {Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Nov 28 16:29:12 UTC 2025 - 25.4K bytes - Viewed (1) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/interval/impl/HostIntervalController.java
* The cache automatically evicts entries after 1 hour of inactivity to prevent memory leaks. */ public class HostIntervalController extends DefaultIntervalController { /** Default cache expire duration in hours */ private static final long DEFAULT_CACHE_EXPIRE_HOURS = 1L; /** Cache storing the last access time for each host. */ private final Cache<String, AtomicLong> lastTimes; /**Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 5.2K bytes - Viewed (0)