Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 71 for walltime (0.18 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/runtime/sys_netbsd_amd64.s

    TEXT runtime·setitimer(SB),NOSPLIT,$-8
    	MOVL	mode+0(FP), DI		// arg 1 - which
    	MOVQ	new+8(FP), SI		// arg 2 - itv
    	MOVQ	old+16(FP), DX		// arg 3 - oitv
    	MOVL	$SYS___setitimer50, AX
    	SYSCALL
    	RET
    
    // func walltime() (sec int64, nsec int32)
    TEXT runtime·walltime(SB), NOSPLIT, $32
    	MOVQ	$CLOCK_REALTIME, DI	// arg 1 - clock_id
    	LEAQ	8(SP), SI		// arg 2 - tp
    	MOVL	$SYS___clock_gettime50, AX
    	SYSCALL
    	MOVQ	8(SP), AX		// sec
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 18:49:01 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  5. src/runtime/sys_netbsd_arm.s

    	RET
    
    TEXT runtime·setitimer(SB),NOSPLIT|NOFRAME,$0
    	MOVW mode+0(FP), R0	// arg 1 - which
    	MOVW new+4(FP), R1	// arg 2 - itv
    	MOVW old+8(FP), R2	// arg 3 - oitv
    	SWI $SYS___setitimer50
    	RET
    
    // func walltime() (sec int64, nsec int32)
    TEXT runtime·walltime(SB), NOSPLIT, $32
    	MOVW $0, R0	// CLOCK_REALTIME
    	MOVW $8(R13), R1
    	SWI $SYS___clock_gettime50
    
    	MOVW 8(R13), R0	// sec.low
    	MOVW 12(R13), R1 // sec.high
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 18:49:01 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  6. src/runtime/sys_dragonfly_amd64.s

    	MOVL	$37, AX		// kill
    	SYSCALL
    	RET
    
    TEXT runtime·setitimer(SB), NOSPLIT, $-8
    	MOVL	mode+0(FP), DI
    	MOVQ	new+8(FP), SI
    	MOVQ	old+16(FP), DX
    	MOVL	$83, AX
    	SYSCALL
    	RET
    
    // func walltime() (sec int64, nsec int32)
    TEXT runtime·walltime(SB), NOSPLIT, $32
    	MOVL	$232, AX // clock_gettime
    	MOVQ	$0, DI  	// CLOCK_REALTIME
    	LEAQ	8(SP), SI
    	SYSCALL
    	MOVQ	8(SP), AX	// sec
    	MOVQ	16(SP), DX	// nsec
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 18:49:01 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  7. src/runtime/sys_openbsd_mips64.s

    	MOVW	mode+0(FP), R4		// arg 1 - mode
    	MOVV	new+8(FP), R5		// arg 2 - new value
    	MOVV	old+16(FP), R6		// arg 3 - old value
    	MOVV	$69, R2			// sys_setitimer
    	SYSCALL
    	RET
    
    // func walltime() (sec int64, nsec int32)
    TEXT runtime·walltime(SB), NOSPLIT, $32
    	MOVW	CLOCK_REALTIME, 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	$SYS_madvise, AX
    	INT	$0x80
    	JAE	2(PC)
    	MOVL	$-1, AX
    	MOVL	AX, ret+12(FP)
    	RET
    
    TEXT runtime·setitimer(SB),NOSPLIT,$-4
    	MOVL	$SYS___setitimer50, AX
    	INT	$0x80
    	RET
    
    // func walltime() (sec int64, nsec int32)
    TEXT runtime·walltime(SB), NOSPLIT, $32
    	LEAL	12(SP), BX
    	MOVL	$CLOCK_REALTIME, 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

    	RET
    
    TEXT runtime·setitimer(SB),NOSPLIT,$-8
    	MOVW	mode+0(FP), R0		// arg 1 - which
    	MOVD	new+8(FP), R1		// arg 2 - itv
    	MOVD	old+16(FP), R2		// arg 3 - oitv
    	SVC	$SYS___setitimer50
    	RET
    
    // func walltime() (sec int64, nsec int32)
    TEXT runtime·walltime(SB), NOSPLIT, $32
    	MOVW	$CLOCK_REALTIME, 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/os3_solaris.go

    }
    
    func usleep1(usec uint32)
    
    //go:nosplit
    func usleep_no_g(µs uint32) {
    	usleep1(µs)
    }
    
    //go:nosplit
    func usleep(µs uint32) {
    	usleep1(µs)
    }
    
    func walltime() (sec int64, nsec int32) {
    	var ts mts
    	sysvicall2(&libc_clock_gettime, _CLOCK_REALTIME, uintptr(unsafe.Pointer(&ts)))
    	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
    - 17.6K bytes
    - Viewed (0)
Back to top