- Sort Score
- Num 10 results
- Language All
Results 101 - 110 of 174 for currentTimeMillis (0.12 seconds)
-
src/test/java/jcifs/EmptyIteratorTest.java
} @Test @DisplayName("EmptyIterator should be lightweight and efficient") void testPerformanceCharacteristics() { // When - create many instances quickly long startTime = System.currentTimeMillis(); for (int i = 0; i < 10000; i++) { EmptyIterator iterator = new EmptyIterator(); iterator.hasNext(); iterator.next(); iterator.remove();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12K bytes - Click Count (0) -
api/maven-api-spi/src/main/java/org/apache/maven/api/spi/ModelTransformer.java
* public Model transformEffectiveModel(Model model) throws ModelTransformerException { * // Add a custom property to all models * model.getProperties().put("custom.timestamp", System.currentTimeMillis()); * return model; * } * } * </pre> * * @since 4.0.0 */ @Experimental @Consumer @Named public interface ModelTransformer extends SpiService { /**
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Apr 03 13:33:59 GMT 2025 - 3.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exec/CrawlerTest.java
// Ignore } }); testThread.start(); long startTime = System.currentTimeMillis(); method.invoke(crawler, testThread); long endTime = System.currentTimeMillis(); assertTrue("Thread should have been joined", endTime - startTime >= 100); } // Test destroyContainer private static method via reflectionCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 30.8K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt
*/ @Test fun retainServedDateFormat() { // Serve a response with a non-standard date format that OkHttp supports. val lastModifiedDate = Date(System.currentTimeMillis() + TimeUnit.HOURS.toMillis(-1)) val servedDate = Date(System.currentTimeMillis() + TimeUnit.HOURS.toMillis(-2)) val dateFormat: DateFormat = SimpleDateFormat("EEE dd-MMM-yyyy HH:mm:ss z", Locale.US)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Mar 20 09:13:37 GMT 2026 - 121K bytes - Click Count (0) -
fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/service/impl/OpenSearchUrlQueueService.java
return; } final OpenSearchUrlQueue urlQueue = new OpenSearchUrlQueue(); urlQueue.setSessionId(sessionId); urlQueue.setUrl(url); urlQueue.setCreateTime(System.currentTimeMillis()); urlQueue.setLastModified(0L); urlQueue.setDepth(0); urlQueue.setMethod(Constants.GET_METHOD); insert(urlQueue); } /**Created: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Thu Nov 20 08:40:57 GMT 2025 - 16.9K bytes - Click Count (1) -
okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt
import org.junit.jupiter.api.extension.RegisterExtension class HeldCertificateTest { @RegisterExtension var platform = PlatformRule() @Test fun defaultCertificate() { val now = System.currentTimeMillis() val heldCertificate = HeldCertificate.Builder().build() val certificate = heldCertificate.certificate assertThat(certificate.getSubjectX500Principal().name, "self-signed")Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 22.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/indexer/IndexUpdaterTest.java
} @Override public long getCurrentTimeAsLong() { return System.currentTimeMillis(); } @Override public String generateDocId(Map<String, Object> map) { return "doc_" + System.currentTimeMillis(); } @Override public boolean calibrateCpuLoad() { cpuLoadCallCount.incrementAndGet();Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 33.6K bytes - Click Count (0) -
src/test/java/jcifs/SmbResourceTest.java
@Test @DisplayName("time methods should return valid timestamps") void testTimeOperations() throws CIFSException { // Given long currentTime = System.currentTimeMillis(); when(mockResource.lastModified()).thenReturn(currentTime); when(mockResource.lastAccess()).thenReturn(currentTime - 1000); when(mockResource.createTime()).thenReturn(currentTime - 2000);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 35K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CacheCorruptionTest.kt
* positive values yield dates in the future. */ private fun formatDate( delta: Long, timeUnit: TimeUnit, ): String? = formatDate(Date(System.currentTimeMillis() + timeUnit.toMillis(delta))) private fun formatDate(date: Date): String? { val rfc1123: DateFormat = SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.US)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Jun 18 12:28:21 GMT 2025 - 6K bytes - Click Count (0) -
docs/smb3-features/02-persistent-handles-design.md
return false; // Persistent handles don't expire } long elapsed = System.currentTimeMillis() - lastAccessTime; return elapsed > timeout; } public void updateAccessTime() { this.lastAccessTime = System.currentTimeMillis(); } } public HandleGuid requestDurableHandle(String path, HandleType type,
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 31.6K bytes - Click Count (0)