Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 153 for currentTimeMillis (0.11 sec)

  1. docs/smb3-features/05-rdma-smb-direct-design.md

        Arrays.fill(data, (byte)0x42);
        
        long start = System.currentTimeMillis();
        
        try (OutputStream os = file.getOutputStream()) {
            os.write(data);
        }
        
        long writeTime = System.currentTimeMillis() - start;
        
        // Read back
        start = System.currentTimeMillis();
        byte[] readData = new byte[data.length];
        
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 35.9K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/interval/impl/HostIntervalController.java

                }
                final AtomicLong lastTime = lastTimes.putIfAbsent(host, new AtomicLong(SystemUtil.currentTimeMillis()));
                if (lastTime == null) {
                    return;
                }
                synchronized (lastTime) {
                    while (true) {
                        final long currentTime = SystemUtil.currentTimeMillis();
                        final long delayTime = lastTime.get() + delayMillisBeforeProcessing - currentTime;
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

            // Max write size
            SMBUtil.writeInt4(1048576, buffer, offset + 36);
    
            // System time
            SMBUtil.writeTime(System.currentTimeMillis(), buffer, offset + 40);
    
            // Server start time
            SMBUtil.writeTime(System.currentTimeMillis() - 3600000, buffer, offset + 48);
    
            // Security buffer offset and length
            SMBUtil.writeInt2(128, buffer, offset + 56); // Offset
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java

            long serverTimeZoneOffset = 3600000L; // 1 hour
            response = new SmbComQueryInformationResponse(mockConfig, serverTimeZoneOffset);
    
            // Set a test time using reflection
            long testTime = System.currentTimeMillis();
            setFieldValue(response, "lastWriteTime", testTime);
    
            // All time methods should return the same converted time
            long expectedTime = testTime + serverTimeZoneOffset;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/helper/DataIndexHelperTest.java

            // Verify that performance optimizations are working
            long startTime = System.currentTimeMillis();
            try {
                dataIndexHelper.crawl("performance-test");
            } catch (Exception e) {
                // Expected
            }
            long duration = System.currentTimeMillis() - startTime;
    
            // Test should complete in under 1 second (much less than the original 25+ seconds)
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 05:35:01 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/lease/DirectoryCacheEntryTest.java

            String childName = "file1.txt";
            long size = 1024L;
            long lastModified = System.currentTimeMillis();
            boolean isDirectory = false;
            long attributes = 0x20; // FILE_ATTRIBUTE_ARCHIVE
            long creationTime = System.currentTimeMillis() - 10000;
            long lastAccessTime = System.currentTimeMillis() - 5000;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/Dfs.java

            long expiration;
            HashMap map;
    
            CacheEntry(long ttl) {
                if (ttl == 0) {
                    ttl = Dfs.TTL;
                }
                expiration = System.currentTimeMillis() + ttl * 1000L;
                map = new HashMap();
            }
        }
    
        static LogStream log = LogStream.getInstance();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/lang/SystemUtil.java

        }
    
        /**
         * Returns the current time in milliseconds.
         *
         * @return the current time in milliseconds
         */
        public static long currentTimeMillis() {
            // TODO provider
            return System.currentTimeMillis();
        }
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/witness/WitnessNotification.java

        public static final int WITNESS_RESOURCE_STATE_UNAVAILABLE = 0x000000FF;
    
        /**
         * Creates a new empty witness notification.
         */
        public WitnessNotification() {
            this.timestamp = System.currentTimeMillis();
            this.newIPAddresses = new ArrayList<>();
            this.oldIPAddresses = new ArrayList<>();
            this.flags = WITNESS_RESOURCE_STATE_UNKNOWN;
        }
    
        /**
         * Creates a new witness notification.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/util/AuthenticationRateLimiter.java

        private final AtomicInteger globalAttemptsInCurrentWindow = new AtomicInteger(0);
        private final AtomicLong currentWindowStart = new AtomicLong(System.currentTimeMillis());
    
        // Cleanup scheduler
        private final ScheduledExecutorService cleanupScheduler;
        private final AtomicBoolean closed = new AtomicBoolean(false);
    
        // Statistics
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.1K bytes
    - Viewed (0)
Back to top