Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 83 for nanotime (0.15 sec)

  1. src/runtime/os_openbsd.go

    //go:nosplit
    func semacreate(mp *m) {
    }
    
    //go:nosplit
    func semasleep(ns int64) int32 {
    	gp := getg()
    
    	// Compute sleep deadline.
    	var tsp *timespec
    	if ns >= 0 {
    		var ts timespec
    		ts.setNsec(ns + nanotime())
    		tsp = &ts
    	}
    
    	for {
    		v := atomic.Load(&gp.m.waitsemacount)
    		if v > 0 {
    			if atomic.Cas(&gp.m.waitsemacount, v, v-1) {
    				return 0 // semaphore acquired
    			}
    			continue
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. src/runtime/rand.go

    func readTimeRandom(r []byte) {
    	// Inspired by wyrand.
    	// An earlier version of this code used getg().m.procid as well,
    	// but note that this is called so early in startup that procid
    	// is not initialized yet.
    	v := uint64(nanotime())
    	for len(r) > 0 {
    		v ^= 0xa0761d6478bd642f
    		v *= 0xe7037ed1a0b428db
    		size := 8
    		if len(r) < 8 {
    			size = len(r)
    		}
    		for i := 0; i < size; i++ {
    			r[i] ^= byte(v >> (8 * i))
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 14:32:47 UTC 2024
    - 8K bytes
    - Viewed (0)
  3. src/runtime/stubs3.go

    // license that can be found in the LICENSE file.
    
    //go:build !aix && !darwin && !freebsd && !openbsd && !plan9 && !solaris && !wasip1
    
    package runtime
    
    //go:wasmimport gojs runtime.nanotime1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 17:48:24 UTC 2023
    - 324 bytes
    - Viewed (0)
  4. tools/bug-report/pkg/config/config_test.go

    					"l7": "lv7",
    					"l8": "lv8",
    				},
    				Annotations: map[string]string{
    					"a7": "av7",
    					"a8": "av8",
    				},
    			},
    		},
    		StartTime:      wantTime,
    		EndTime:        wantTime,
    		Since:          Duration(time.Minute),
    		CriticalErrors: []string{"e1", "e2"},
    		IgnoredErrors:  []string{"e3", "e4"},
    	}
    
    	got := &BugReportConfig{}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Dec 15 15:19:50 UTC 2021
    - 4.4K bytes
    - Viewed (0)
  5. src/runtime/vdso_freebsd.go

    	case _CLOCK_REALTIME:
    		abs = true
    	default:
    		return zeroBintime
    	}
    	return binuptime(abs)
    }
    
    func fallback_nanotime() int64
    func fallback_walltime() (sec int64, nsec int32)
    
    //go:nosplit
    func nanotime1() int64 {
    	bt := vdsoClockGettime(_CLOCK_MONOTONIC)
    	if bt == zeroBintime {
    		return fallback_nanotime()
    	}
    	return int64((1e9 * uint64(bt.sec)) + ((1e9 * uint64(bt.frac>>32)) >> 32))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. src/runtime/os_openbsd_syscall2.go

    func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uint32) (p unsafe.Pointer, err int)
    
    // munmap calls the munmap system call. It is implemented in assembly.
    func munmap(addr unsafe.Pointer, n uintptr)
    
    func nanotime1() int64
    
    //go:noescape
    func sigaltstack(new, old *stackt)
    
    func fcntl(fd, cmd, arg int32) (ret int32, errno int32)
    
    func walltime() (sec int64, nsec int32)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. src/runtime/sys_openbsd_mips64.s

    	MOVV	$87, R2			// sys_clock_gettime
    	SYSCALL
    
    	MOVV	8(R29), R4		// sec
    	MOVV	16(R29), R5		// nsec
    	MOVV	R4, sec+0(FP)
    	MOVW	R5, nsec+8(FP)
    
    	RET
    
    // int64 nanotime1(void) so really
    // void nanotime1(int64 *nsec)
    TEXT runtime·nanotime1(SB),NOSPLIT,$32
    	MOVW	CLOCK_MONOTONIC, R4	// arg 1 - clock_id
    	MOVV	$8(R29), R5		// arg 2 - tp
    	MOVV	$87, R2			// sys_clock_gettime
    	SYSCALL
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 18:49:01 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  8. src/runtime/sys_netbsd_386.s

    	MOVL	12(SP), AX		// sec - l32
    	MOVL	AX, sec_lo+0(FP)
    	MOVL	16(SP), AX		// sec - h32
    	MOVL	AX, sec_hi+4(FP)
    
    	MOVL	20(SP), BX		// nsec
    	MOVL	BX, nsec+8(FP)
    	RET
    
    // int64 nanotime1(void) so really
    // void nanotime1(int64 *nsec)
    TEXT runtime·nanotime1(SB),NOSPLIT,$32
    	LEAL	12(SP), BX
    	MOVL	$CLOCK_MONOTONIC, 4(SP)	// arg 1 - clock_id
    	MOVL	BX, 8(SP)		// arg 2 - tp
    	MOVL	$SYS___clock_gettime50, AX
    	INT	$0x80
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 18:49:01 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  9. src/runtime/sys_netbsd_arm64.s

    	SVC	$SYS___clock_gettime50
    
    	MOVD	8(RSP), R0		// sec
    	MOVD	16(RSP), R1		// nsec
    
    	// sec is in R0, nsec in R1
    	MOVD	R0, sec+0(FP)
    	MOVW	R1, nsec+8(FP)
    	RET
    
    // int64 nanotime1(void) so really
    // void nanotime1(int64 *nsec)
    TEXT runtime·nanotime1(SB), NOSPLIT, $32
    	MOVD	$CLOCK_MONOTONIC, R0	// arg 1 - clock_id
    	MOVD	$8(RSP), R1		// arg 2 - tp
    	SVC	$SYS___clock_gettime50
    	MOVD	8(RSP), R0		// sec
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 18:49:01 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  10. src/runtime/os_wasip1.go

    	var time timestamp
    	if clock_time_get(clockRealtime, 0, unsafe.Pointer(&time)) != 0 {
    		throw("clock_time_get failed")
    	}
    	return int64(time / 1000000000), int32(time % 1000000000)
    }
    
    func nanotime1() int64 {
    	var time timestamp
    	if clock_time_get(clockMonotonic, 0, unsafe.Pointer(&time)) != 0 {
    		throw("clock_time_get failed")
    	}
    	return int64(time)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 7K bytes
    - Viewed (0)
Back to top