Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 185 for timeFn (0.17 sec)

  1. ISSUES.md

    the whole community, e.g., fixing bugs and adding features. Individual support
    should be sought on Stack Overflow or other non-GitHub channels. It helps us to
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 11 22:37:27 UTC 2021
    - 606 bytes
    - Viewed (0)
  2. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/LoggingEventListener.kt

        call: Call,
        cachedResponse: Response,
      ) {
        logWithTime("cacheConditionalHit: $cachedResponse")
      }
    
      private fun logWithTime(message: String) {
        val timeMs = TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - startNs)
        logger.log("[$timeMs ms] $message")
      }
    
      open class Factory
        @JvmOverloads
        constructor(
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 01 11:07:32 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. src/time/sleep.go

    // A Timer must be created with [NewTimer] or AfterFunc.
    type Timer struct {
    	C         <-chan Time
    	initTimer bool
    }
    
    // Stop prevents the [Timer] from firing.
    // It returns true if the call stops the timer, false if the timer has already
    // expired or been stopped.
    //
    // For a func-based timer created with [AfterFunc](d, f),
    // if t.Stop returns false, then the timer has already expired
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:30 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  4. test/fixedbugs/issue38093.go

    // Test race condition between timers and wasm calls that led to memory corruption.
    
    package main
    
    import (
    	"os"
    	"syscall/js"
    	"time"
    )
    
    func main() {
    	ch1 := make(chan struct{})
    
    	go func() {
    		for {
    			time.Sleep(5 * time.Millisecond)
    			ch1 <- struct{}{}
    		}
    	}()
    	go func() {
    		for {
    			time.Sleep(8 * time.Millisecond)
    			ch1 <- struct{}{}
    		}
    	}()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 861 bytes
    - Viewed (0)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/ClientRuleEventListener.kt

      }
    
      private fun logWithTime(message: String) {
        val startNs = startNs
        val timeMs =
          if (startNs == null) {
            // Event occurred before start, for an example an early cancel.
            0L
          } else {
            TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - startNs)
          }
    
        logger.invoke("[$timeMs ms] $message")
      }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. src/internal/trace/testdata/generators/go122-go-create-without-running-g.go

    //
    // GoCreate events can happen on bare Ps in a variety of situations and
    // and earlier version of the parser assumed this wasn't possible. At
    // the time of writing, one such example is goroutines created by expiring
    // timers.
    
    package main
    
    import (
    	"internal/trace"
    	"internal/trace/event/go122"
    	testgen "internal/trace/internal/testgen/go122"
    )
    
    func main() {
    	testgen.Main(gen)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 996 bytes
    - Viewed (0)
  7. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorParallelBuildOperationsIntegrationTest.groovy

            succeeds(":workTask", ":slowTask")
            assert !endTime(":workTask").isBefore(endTime(":slowTask"))
        }
    
        def endTime(String taskPath) {
            def timeMs = buildOperations.only("Task " + taskPath).endTime
            return Instant.ofEpochMilli(timeMs)
        }
    
        String getMultipleActionTaskType() {
            return """
                import org.gradle.test.FileHelper
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go

    //sysnb	setgroups(n int, list *_Gid_t) (err error)
    
    //sys	futimesat(dirfd int, path string, times *[2]Timeval) (err error)
    //sysnb	Gettimeofday(tv *Timeval) (err error)
    
    func Time(t *Time_t) (tt Time_t, err error) {
    	var tv Timeval
    	err = Gettimeofday(&tv)
    	if err != nil {
    		return 0, err
    	}
    	if t != nil {
    		*t = Time_t(tv.Sec)
    	}
    	return Time_t(tv.Sec), nil
    }
    
    //sys	Utime(path string, buf *Utimbuf) (err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/tests/FileAttributesTest.java

                        int diff = Math.abs((int) ( ( time / 1000 ) - ( f.lastModified() / 1000 ) ));
                        Assert.assertTrue("Have set time correctly", diff < 2);
                    }
                    else {
                        assertEquals(time, f.lastModified());
                        assertEquals(time, f.lastAccess());
                        assertEquals(time, f.createTime());
                    }
                }
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  10. src/syscall/syscall_linux_s390x.go

    //sys	futimesat(dirfd int, path string, times *[2]Timeval) (err error)
    //sysnb	Gettimeofday(tv *Timeval) (err error)
    
    func Time(t *Time_t) (tt Time_t, err error) {
    	var tv Timeval
    	err = Gettimeofday(&tv)
    	if err != nil {
    		return 0, err
    	}
    	if t != nil {
    		*t = Time_t(tv.Sec)
    	}
    	return Time_t(tv.Sec), nil
    }
    
    //sys	Utime(path string, buf *Utimbuf) (err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 7.9K bytes
    - Viewed (0)
Back to top