Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for walltime1 (0.19 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. tensorflow/cc/saved_model/loader.cc

                                      meta_graph.saver_def().filename_tensor_name(),
                                      asset_file_defs, session->get()));
      }
      // Record walltime spent in restoring graph from disk, but postpone metric
      // increments until graph init finishes.
      const uint64 restore_graph_walltime =
          GetLatencyMicroseconds(read_start_microseconds);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 02 04:36:00 UTC 2024
    - 23K bytes
    - Viewed (0)
  10. src/runtime/sys_linux_ppc64x.s

    	MOVD	addr+0(FP), R3
    	MOVD	n+8(FP), R4
    	MOVD	dst+16(FP), R5
    	SYSCALL	$SYS_mincore
    	NEG	R3		// caller expects negative errno
    	MOVW	R3, ret+24(FP)
    	RET
    
    // func walltime() (sec int64, nsec int32)
    TEXT runtime·walltime(SB),NOSPLIT,$16-12
    	MOVD	R1, R15		// R15 is unchanged by C code
    	MOVD	g_m(g), R21	// R21 = m
    
    	MOVD	$0, R3		// CLOCK_REALTIME
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 18.1K bytes
    - Viewed (0)
Back to top