- Sort Score
- Num 10 results
- Language All
Results 271 - 280 of 1,308 for timed (0.02 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
internal/grid/connection.go
var wsw wsWriter var lastSetDeadline time.Time // Helper to write everything in buf. // Return false if an error occurred and the connection is unusable. // Buffer will be reset empty when returning successfully. writeBuffer := func() (ok bool) { now := time.Now() // Only set write deadline once every second if now.Sub(lastSetDeadline) > time.Second {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 46.9K bytes - Click Count (0) -
cmd/last-minute.go
func (a *AccElem) add(dur time.Duration) { if dur < 0 { dur = 0 } a.Total += int64(dur) a.N++ } // Merge b into a. func (a *AccElem) merge(b AccElem) { a.N += b.N a.Total += b.Total a.Size += b.Size } // Avg returns average time spent. func (a AccElem) avg() time.Duration { if a.N >= 1 && a.Total > 0 { return time.Duration(a.Total / a.N) } return 0 }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Jul 05 17:40:45 GMT 2023 - 4.8K bytes - Click Count (0) -
guava/src/com/google/common/cache/ReferenceEntry.java
* New entries are added at the tail of the list at write time; stale entries are expired from * the head of the list. */ /** Returns the time that this entry was last accessed, in ns. */ @SuppressWarnings("GoodTime") long getAccessTime(); /** Sets the entry access time in ns. */ @SuppressWarnings("GoodTime") // b/122668874 void setAccessTime(long time); /** Returns the next entry in the access queue. */Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 13:13:59 GMT 2026 - 3.5K bytes - Click Count (0) -
internal/logger/target/http/http.go
if h.batchSize > 1 && time.Since(lastBatchProcess) < time.Second { continue } } // if we have reached the count send at once // or we have crossed last second before batch was sent, send at once lastBatchProcess = time.Now() var retries int retryIntvl := h.config.RetryIntvl if retryIntvl <= 0 { retryIntvl = 3 * time.Second }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 15.6K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/DosFileFilterTest.java
verify(file, times(1)).getAttributes(); } @Test public void testAcceptReturnsFalseWhenAttributesDoNotMatch() throws Exception { SmbFile file = mock(SmbFile.class); when(file.getAttributes()).thenReturn(SmbFile.ATTR_HIDDEN); assertFalse(filter.accept(file), "Attributes not matching should be rejected"); verify(file, times(1)).getAttributes(); } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 1.8K bytes - Click Count (0) -
src/main/java/org/codelibs/core/beans/converter/TimeConverter.java
import java.sql.Time; import java.util.Date; import org.codelibs.core.beans.Converter; import org.codelibs.core.convert.StringConversionUtil; import org.codelibs.core.convert.TimeConversionUtil; /** * Converter for time. * * @author higa */ public class TimeConverter implements Converter { /** * The pattern for time. */ protected String pattern;Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 2K bytes - Click Count (0) -
tests/lru_test.go
lru := lru.NewLRU[string, int](0, nil, time.Hour) lru.Add("key1", 1) lru.Add("key2", 2) lru.Add("key3", 3) if _, ok := lru.Get("key1"); !ok { t.Errorf("Expected key1 to exist, but it was evicted") } } func TestLRU_Add_Eviction(t *testing.T) { lru := lru.NewLRU[string, int](0, nil, time.Second*2) lru.Add("key1", 1) lru.Add("key2", 2) lru.Add("key3", 3) time.Sleep(time.Second * 3) if lru.Cap() != 0 {
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Sep 08 09:19:22 GMT 2025 - 10.4K bytes - Click Count (0) -
tests/customize_field_test.go
package tests_test import ( "testing" "time" "gorm.io/gorm" . "gorm.io/gorm/utils/tests" ) func TestCustomizeColumn(t *testing.T) { type CustomizeColumn struct { ID int64 `gorm:"column:mapped_id; primary_key:yes"` Name string `gorm:"column:mapped_name"` Date *time.Time `gorm:"column:mapped_time"` } DB.Migrator().DropTable(&CustomizeColumn{}) DB.AutoMigrate(&CustomizeColumn{})
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Fri Sep 11 09:33:31 GMT 2020 - 6.9K bytes - Click Count (0) -
internal/lsync/lrwmutex.go
return false default: if lm.lock(id, source, isWriteLock) { return true } time.Sleep(time.Duration(r.Float64() * float64(lockRetryInterval))) } } } // Unlock unlocks the write lock. // // It is a run-time error if lm is not locked on entry to Unlock. func (lm *LRWMutex) Unlock() { isWriteLock := true success := lm.unlock(isWriteLock)
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Jan 02 17:15:06 GMT 2022 - 4.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java
CountDownLatch endLatch = new CountDownLatch(threadCount); AtomicInteger releaseCount = new AtomicInteger(0); AtomicInteger acquireCount = new AtomicInteger(0); // Acquire session multiple times for (int i = 0; i < threadCount - 1; i++) { session.acquire(); } // When - Multiple threads try to release/acquire concurrently for (int t = 0; t < threadCount; t++) {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 11K bytes - Click Count (0)