- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 172 for currentTimeMillis (0.23 seconds)
-
src/main/java/org/codelibs/core/lang/SystemUtil.java
*/ private static LongSupplier timeProvider = System::currentTimeMillis; /** * Returns the current time in milliseconds. * * @return the current time in milliseconds */ public static long currentTimeMillis() { return timeProvider.getAsLong(); } /** * Sets a custom time provider. Useful for testing.Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Feb 12 12:10:45 GMT 2026 - 4.1K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/internal.kt
import okhttp3.internal.connection.RealConnection // Exposes Kotlin-internal APIs to Java test code and code in other modules. internal fun parseCookie( currentTimeMillis: Long, url: HttpUrl, setCookie: String, ): Cookie? = Cookie.parse(currentTimeMillis, url, setCookie) internal fun cookieToString( cookie: Cookie, forObsoleteRfc2965: Boolean, ): String = cookie.toString(forObsoleteRfc2965)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 3.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/RoleQueryHelperTest.java
long currentTime = roleQueryHelper.getCurrentTime(); assertTrue(currentTime > 0); long currentTimeMillis = System.currentTimeMillis(); // Allow for small time difference assertTrue(Math.abs(currentTime - currentTimeMillis) < 1000); } @Test public void test_constants() { assertEquals("userRoles", RoleQueryHelper.USER_ROLES); }Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 28.8K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cookie.kt
* [setCookie] is not a well-formed cookie. */ @JvmStatic fun parse( url: HttpUrl, setCookie: String, ): Cookie? = parse(System.currentTimeMillis(), url, setCookie) internal fun parse( currentTimeMillis: Long, url: HttpUrl, setCookie: String, ): Cookie? { val cookiePairEnd = setCookie.delimiterOffset(';')Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 23.1K bytes - Click Count (0) -
guava/src/com/google/common/base/Stopwatch.java
* 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 * {@link System#currentTimeMillis()}, best represented as an {@link java.time.Instant}. Such values * <i>can</i> be subtracted to obtain a {@link Duration} (such as by {@link Duration#between}), but
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Oct 08 18:55:33 GMT 2025 - 9.2K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Stopwatch.java
* 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 * {@link System#currentTimeMillis()}, best represented as an {@link java.time.Instant}. Such values * <i>can</i> be subtracted to obtain a {@link Duration} (such as by {@link Duration#between}), but
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Oct 08 18:55:33 GMT 2025 - 9.5K bytes - Click Count (0) -
fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/service/impl/OpenSearchDataServiceTest.java
accessResult1.setContentLength(Long.valueOf(10)); accessResult1.setCreateTime(System.currentTimeMillis()); accessResult1.setExecutionTime(10); accessResult1.setHttpStatusCode(200); accessResult1.setLastModified(System.currentTimeMillis()); accessResult1.setMethod("GET"); accessResult1.setMimeType("text/plain");
Created: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Wed Jan 14 23:48:16 GMT 2026 - 15.7K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java
when(mockFile1.lastModified()).thenReturn(System.currentTimeMillis() - 3600000); when(mockFile1.isDirectory()).thenReturn(false); when(mockFile1.getAttributes()).thenReturn(0x20); // FILE_ATTRIBUTE_ARCHIVE when(mockFile1.createTime()).thenReturn(System.currentTimeMillis() - 7200000); when(mockFile1.lastAccess()).thenReturn(System.currentTimeMillis() - 1800000);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 01:47:47 GMT 2025 - 14.2K bytes - Click Count (0) -
src/test/java/org/codelibs/core/collection/ArrayMapTest.java
System.out.println("ArrayMap.put:" + (System.currentTimeMillis() - start)); start = System.currentTimeMillis(); for (int i = 0; i < num; i++) { hmap.get(String.valueOf(i)); } System.out.println("HashMap.get:" + (System.currentTimeMillis() - start)); start = System.currentTimeMillis(); for (int i = 0; i < num; i++) { amap.get(String.valueOf(i));
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 10.7K bytes - Click Count (0) -
src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java
// Setup second referral DfsReferralDataImpl second = new DfsReferralDataImpl(); when(mockReferral.getNode()).thenReturn("\\server2\\share2\\path2"); second = DfsReferralDataImpl.fromReferral(mockReferral, "\\\\server2\\share2\\path2", System.currentTimeMillis() + 20000, 15); second.setDomain("DOMAIN");Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 30.6K bytes - Click Count (0)