Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for enc_time (0.24 sec)

  1. src/main/java/jcifs/util/Encdec.java

         * @param di the starting index in the destination array
         * @param enc the time encoding type (e.g., TIME_1970_SEC_32BE)
         * @return the number of bytes written
         */
        public static int enc_time(final Date date, final byte[] dst, final int di, final int enc) {
            long t;
    
            return switch (enc) {
            case TIME_1970_SEC_32BE -> enc_uint32be((int) (date.getTime() / 1000L), dst, di);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/util/Encdec.java

         * @param di the starting index in the destination array
         * @param enc the time encoding type (e.g., TIME_1970_SEC_32BE)
         * @return the number of bytes written
         */
        public static int enc_time(final Date date, final byte[] dst, final int di, final int enc) {
            long t;
    
            return switch (enc) {
            case TIME_1970_SEC_32BE -> enc_uint32be((int) (date.getTime() / 1000L), dst, di);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java

                            long startTime = System.nanoTime();
                            boolean result = correctAuth.equals(wrongAuth);
                            long endTime = System.nanoTime();
                            timings.add(endTime - startTime);
                            assertFalse(result, "Passwords should not be equal");
                        }
                    });
                }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  4. cmd/os-instrumented.go

    	startTime := time.Now()
    	return func() {
    		duration := time.Since(startTime)
    
    		atomic.AddUint64(&o.operations[s], 1)
    		o.latency[s].add(duration)
    	}
    }
    
    // incTime will increment time on metric s with a specific duration.
    func (o *osMetrics) incTime(s osMetric, d time.Duration) {
    	atomic.AddUint64(&o.operations[s], 1)
    	o.latency[s].add(d)
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/mylasta/direction/FessConfigTest.java

                        return "";
                    case FessConfig.INDEX_ADMIN_DOUBLE_FIELDS:
                        return "";
                    case FessConfig.INDEX_ADMIN_DATE_FIELDS:
                        return "expires,start_time,end_time";
                    case FessConfig.INDEX_ADMIN_REQUIRED_FIELDS:
                        return "url,title,role,boost";
                    case FessConfig.INDEX_ADMIN_ARRAY_FIELDS:
                        return "alerts,roles";
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 23.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/EmptyIteratorTest.java

                    } catch (CIFSException e) {
                        throw new RuntimeException(e);
                    }
                });
            }
    
            long endTime = System.currentTimeMillis();
            long duration = endTime - startTime;
    
            // Then - should complete quickly (this is more of a performance indicator)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12K bytes
    - Viewed (0)
  7. cmd/data-scanner-metric.go

    		atomic.AddUint64(&p.operations[s], 1)
    		if s < scannerMetricLastRealtime {
    			p.latency[s].addSize(duration, int64(sz))
    		}
    	}
    }
    
    // incTime will increment time on metric s with a specific duration.
    // Use for s < scannerMetricLastRealtime
    func (p *scannerMetrics) incTime(s scannerMetric, d time.Duration) {
    	atomic.AddUint64(&p.operations[s], 1)
    	if s < scannerMetricLastRealtime {
    		p.latency[s].add(d)
    	}
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/exec/CrawlerTest.java

                }
            });
            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 reflection
        public void test_destroyContainer() throws Exception {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 30.5K bytes
    - Viewed (0)
  9. cmd/rebalance-admin.go

    		elapsed := time.Since(ps.Info.StartTime)
    		eta := time.Duration(totalBytesToRebal * float64(elapsed) / float64(ps.Bytes))
    		if !ps.Info.EndTime.IsZero() {
    			stopTime = ps.Info.EndTime
    		}
    
    		if !stopTime.IsZero() { // rebalance is stopped or completed
    			elapsed = stopTime.Sub(ps.Info.StartTime)
    			eta = 0
    		}
    
    		r.Pools[i].Progress = rebalPoolProgress{
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  10. cmd/admin-heal-ops.go

    	defer periodicTimer.Stop()
    
    	for {
    		select {
    		case <-periodicTimer.C:
    			now := UTCNow()
    			ahs.Lock()
    			for path, h := range ahs.healSeqMap {
    				if h.hasEnded() && h.endTime.Add(keepHealSeqStateDuration).Before(now) {
    					delete(ahs.healSeqMap, path)
    				}
    			}
    			ahs.Unlock()
    
    			periodicTimer.Reset(time.Minute * 5)
    		case <-ctx.Done():
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 25.4K bytes
    - Viewed (0)
Back to top