Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for walltime1 (0.13 sec)

  1. src/runtime/os_wasip1.go

    			end := start
    			for environBuf[end] != 0 {
    				end++
    			}
    			envs[i] = string(environBuf[start:end])
    		}
    	}
    }
    
    func walltime() (sec int64, nsec int32) {
    	return walltime1()
    }
    
    func walltime1() (sec int64, nsec int32) {
    	var time timestamp
    	if clock_time_get(clockRealtime, 0, unsafe.Pointer(&time)) != 0 {
    		throw("clock_time_get failed")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 7K bytes
    - Viewed (0)
  2. src/runtime/timestub2.go

    // license that can be found in the LICENSE file.
    
    //go:build !aix && !darwin && !freebsd && !openbsd && !solaris && !wasip1 && !windows && !(linux && amd64)
    
    package runtime
    
    //go:wasmimport gojs runtime.walltime
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 17:48:24 UTC 2023
    - 363 bytes
    - Viewed (0)
  3. src/runtime/timestub.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Declarations for operating systems implementing time.now
    // indirectly, in terms of walltime and nanotime assembly.
    
    //go:build !faketime && !windows && !(linux && amd64)
    
    package runtime
    
    import _ "unsafe" // for go:linkname
    
    // time_now should be an internal detail,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 889 bytes
    - Viewed (0)
  4. src/runtime/os_openbsd_syscall2.go

    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)
  5. src/runtime/vdso_freebsd.go

    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))
    }
    
    func walltime() (sec int64, nsec int32) {
    	bt := vdsoClockGettime(_CLOCK_REALTIME)
    	if bt == zeroBintime {
    		return fallback_walltime()
    	}
    	return int64(bt.sec), int32((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/sys_plan9_amd64.s

    TEXT runtime·plan9_tsemacquire(SB),NOSPLIT,$0
    	MOVQ	$52, BP
    	SYSCALL
    	MOVL	AX, ret+16(FP)
    	RET
    
    TEXT runtime·nsec(SB),NOSPLIT,$0
    	MOVQ	$53, BP
    	SYSCALL
    	MOVQ	AX, ret+8(FP)
    	RET
    
    // func walltime() (sec int64, nsec int32)
    TEXT runtime·walltime(SB),NOSPLIT,$8-12
    	CALL	runtime·nanotime1(SB)
    	MOVQ	0(SP), AX
    
    	// generated code for
    	//	func f(x uint64) (uint64, uint64) { return x/1000000000, x%1000000000 }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 01 16:41:22 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  7. src/runtime/sys_plan9_386.s

    	INT	$64
    	RET
    
    TEXT runtime·nsec(SB),NOSPLIT,$8
    	LEAL	ret+4(FP), AX
    	MOVL	AX, 0(SP)
    	CALL	nsec<>(SB)
    	CMPL	AX, $0
    	JGE	3(PC)
    	MOVL	$-1, ret_lo+4(FP)
    	MOVL	$-1, ret_hi+8(FP)
    	RET
    
    // func walltime() (sec int64, nsec int32)
    TEXT runtime·walltime(SB),NOSPLIT,$8-12
    	CALL	runtime·nanotime1(SB)
    	MOVL	0(SP), AX
    	MOVL	4(SP), DX
    
    	MOVL	$1000000000, CX
    	DIVL	CX
    	MOVL	AX, sec_lo+0(FP)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 21 22:12:04 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  8. src/runtime/sys_openbsd2.go

    		systemstack(func() {
    			println("runtime: errno", -errno)
    			throw("clock_gettime failed")
    		})
    	}
    	return ts.tv_sec*1e9 + int64(ts.tv_nsec)
    }
    func clock_gettime_trampoline()
    
    //go:nosplit
    func walltime() (int64, int32) {
    	var ts timespec
    	args := struct {
    		clock_id int32
    		tp       unsafe.Pointer
    	}{_CLOCK_REALTIME, unsafe.Pointer(&ts)}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. src/runtime/sys_plan9_arm.s

    TEXT runtime·nsec(SB),NOSPLIT|NOFRAME,$0-12
    	MOVW	$SYS_NSEC, R0
    	SWI	$0
    	MOVW	arg+0(FP), R1
    	MOVW	0(R1), R0
    	MOVW	R0, ret_lo+4(FP)
    	MOVW	4(R1), R0
    	MOVW	R0, ret_hi+8(FP)
    	RET
    
    // func walltime() (sec int64, nsec int32)
    TEXT runtime·walltime(SB),NOSPLIT,$12-12
    	// use nsec system call to get current time in nanoseconds
    	MOVW	$sysnsec_lo-8(SP), R0	// destination addr
    	MOVW	R0,res-12(SP)
    	MOVW	$SYS_NSEC, R0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 29 14:15:04 UTC 2021
    - 7K bytes
    - Viewed (0)
  10. src/runtime/os_aix.go

    //go:nosplit
    func nanotime1() int64 {
    	tp := &timespec{}
    	if clock_gettime(_CLOCK_REALTIME, tp) != 0 {
    		throw("syscall clock_gettime failed")
    	}
    	return tp.tv_sec*1000000000 + tp.tv_nsec
    }
    
    func walltime() (sec int64, nsec int32) {
    	ts := &timespec{}
    	if clock_gettime(_CLOCK_REALTIME, ts) != 0 {
    		throw("syscall clock_gettime failed")
    	}
    	return ts.tv_sec, int32(ts.tv_nsec)
    }
    
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top