Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for clockgettime (0.17 sec)

  1. src/runtime/vdso_test.go

    	}
    
    	exe, err := os.Executable()
    	if err != nil {
    		t.Skipf("skipping because Executable failed: %v", err)
    	}
    
    	t.Logf("GO_WANT_HELPER_PROCESS=1 %s -f -e clock_gettime %s -test.run=^TestUsingVDSO$", strace, exe)
    	cmd := testenv.Command(t, strace, "-f", "-e", "clock_gettime", exe, "-test.run=^TestUsingVDSO$")
    	cmd = testenv.CleanCmdEnv(cmd)
    	cmd.Env = append(cmd.Env, "GO_WANT_HELPER_PROCESS=1")
    	out, err := cmd.CombinedOutput()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 17 19:47:47 UTC 2024
    - 3.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

    		// Avoid growing the nosplit stack.
    		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 {
    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_dragonfly_amd64.s

    	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
    
    	// sec is in AX, nsec in DX
    	MOVQ	AX, sec+0(FP)
    	MOVL	DX, nsec+8(FP)
    	RET
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 18:49:01 UTC 2023
    - 8.3K bytes
    - Viewed (0)
Back to top