- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 31 for walltime1 (0.18 sec)
-
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) -
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) -
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) -
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) -
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) -
src/runtime/sys_darwin.go
} func nanotime_trampoline() // walltime should be an internal detail, // but widely used packages access it using linkname. // Notable members of the hall of shame include: // - gitee.com/quant1x/gox // // Do not remove or change the type signature. // See go.dev/issue/67401. // //go:linkname walltime //go:nosplit //go:cgo_unsafe_args func walltime() (int64, int32) { var t timespec
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:17:26 UTC 2024 - 23.9K bytes - Viewed (0) -
src/runtime/sys_linux_mips64x.s
MOVV addr+0(FP), R4 MOVV n+8(FP), R5 MOVV dst+16(FP), R6 MOVV $SYS_mincore, R2 SYSCALL SUBVU R2, R0, R2 // caller expects negative errno MOVW R2, ret+24(FP) RET // func walltime() (sec int64, nsec int32) TEXT runtime·walltime(SB),NOSPLIT,$16-12 MOVV R29, R16 // R16 is unchanged by C code MOVV R29, R1 MOVV g_m(g), R17 // R17 = m // Set vdsoPC and vdsoSP for SIGPROF traceback.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 18 20:57:24 UTC 2022 - 12K bytes - Viewed (0) -
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) -
src/cmd/compile/internal/ssa/compile.go
return "" case "seed": checkEnabled = true checkRandSeed = val debugPoset = checkEnabled return "" } } alltime := false allmem := false alldump := false if phase == "all" { switch flag { case "time": alltime = val != 0 case "mem": allmem = val != 0 case "dump": alldump = val != 0 if alldump { BuildDump[valString] = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 14:55:18 UTC 2024 - 18.6K bytes - Viewed (0) -
misc/wasm/wasm_exec.js
// func nanotime1() int64 "runtime.nanotime1": (sp) => { sp >>>= 0; setInt64(sp + 8, (timeOrigin + performance.now()) * 1000000); }, // func walltime() (sec int64, nsec int32) "runtime.walltime": (sp) => { sp >>>= 0; const msec = (new Date).getTime(); setInt64(sp + 8, msec / 1000); this.mem.setInt32(sp + 16, (msec % 1000) * 1000000, true); },
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 22 17:47:47 UTC 2023 - 16.3K bytes - Viewed (0)