Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 164 for Nsec (0.51 sec)

  1. src/syscall/types_windows.go

    // Invented values to support what package os expects.
    type Timeval struct {
    	Sec  int32
    	Usec int32
    }
    
    func (tv *Timeval) Nanoseconds() int64 {
    	return (int64(tv.Sec)*1e6 + int64(tv.Usec)) * 1e3
    }
    
    func NsecToTimeval(nsec int64) (tv Timeval) {
    	tv.Sec = int32(nsec / 1e9)
    	tv.Usec = int32(nsec % 1e9 / 1e3)
    	return
    }
    
    type SecurityAttributes struct {
    	Length             uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  2. src/runtime/sys_linux_riscv64.s

    	JALR	RA, A7
    
    finish:
    	MOV	8(X2), T0	// sec
    	MOV	16(X2), T1	// nsec
    
    	MOV	S2, X2	// restore stack
    	MOV	24(X2), A2
    	MOV	A2, m_vdsoPC(S3)
    
    	MOV	32(X2), A3
    	MOV	A3, m_vdsoSP(S3)
    
    	MOV	T0, sec+0(FP)
    	MOVW	T1, nsec+8(FP)
    	RET
    
    fallback:
    	MOV	$8(X2), A1
    	MOV	$SYS_clock_gettime, A7
    	ECALL
    	MOV	8(X2), T0	// sec
    	MOV	16(X2), T1	// nsec
    	MOV	T0, sec+0(FP)
    	MOVW	T1, nsec+8(FP)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 13:57:06 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/apis/meta/fuzzer/fuzzer.go

    			// Fuzzing sec and nsec in a smaller range (uint32 instead of int64),
    			// so that the result Unix time is a valid date and can be parsed into RFC3339 format.
    			var sec, nsec uint32
    			c.Fuzz(&sec)
    			c.Fuzz(&nsec)
    			j.CreationTimestamp = metav1.Unix(int64(sec), int64(nsec)).Rfc3339Copy()
    
    			if j.DeletionTimestamp != nil {
    				c.Fuzz(&sec)
    				c.Fuzz(&nsec)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 15:12:26 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  4. src/runtime/sys_linux_ppc64x.s

    	MOVW	flags+0(FP), R4
    	SYSCALL	$SYS_pipe2
    	MOVW	R3, errno+16(FP)
    	RET
    
    // func usleep(usec uint32)
    TEXT runtime·usleep(SB),NOSPLIT,$16-4
    	MOVW	usec+0(FP), R3
    
    	// Use magic constant 0x8637bd06 and shift right 51
    	// to perform usec/1000000.
    	MOVD	$0x8637bd06, R4
    	MULLD	R3, R4, R4	// Convert usec to S.
    	SRD	$51, R4, R4
    	MOVD	R4, 8(R1)	// Store to tv_sec
    
    	MOVD	$1000000, R5
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  5. src/runtime/sys_linux_loong64.s

    	// we cannot receive another signal.
    	MOVV	16(R3), R25
    	MOVV	R25, m_vdsoSP(R24)
    	MOVV	8(R3), R25
    	MOVV	R25, m_vdsoPC(R24)
    
    	// sec is in R7, nsec in R5
    	// return nsec in R7
    	MOVV	$1000000000, R4
    	MULVU	R4, R7, R7
    	ADDVU	R5, R7
    	MOVV	R7, ret+0(FP)
    	RET
    
    fallback:
    	MOVV	$SYS_clock_gettime, R11
    	SYSCALL
    	JMP	finish
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 20:58:13 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  6. src/syscall/syscall_linux_386.go

    	_SYS_setgroups  = SYS_SETGROUPS32
    	_SYS_clone3     = 435
    	_SYS_faccessat2 = 439
    	_SYS_fchmodat2  = 452
    )
    
    func setTimespec(sec, nsec int64) Timespec {
    	return Timespec{Sec: int32(sec), Nsec: int32(nsec)}
    }
    
    func setTimeval(sec, usec int64) Timeval {
    	return Timeval{Sec: int32(sec), Usec: int32(usec)}
    }
    
    // 64-bit file system and 32-bit uid calls
    // (386 default is 32-bit file system and 16-bit uid).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  7. src/syscall/syscall_aix.go

    //sys	writev(fd int, iovecs []Iovec) (n uintptr, err error)
    
    //sys	gettimeofday(tv *Timeval, tzp *Timezone) (err error)
    
    func setTimespec(sec, nsec int64) Timespec {
    	return Timespec{Sec: sec, Nsec: nsec}
    }
    
    func setTimeval(sec, usec int64) Timeval {
    	return Timeval{Sec: sec, Usec: int32(usec)}
    }
    
    func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:50:55 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  8. src/syscall/fs_wasip1.go

    	atime := TimespecToNsec(ts[0])
    	mtime := TimespecToNsec(ts[1])
    	if ts[0].Nsec == UTIME_OMIT || ts[1].Nsec == UTIME_OMIT {
    		var st Stat_t
    		if err := Stat(path, &st); err != nil {
    			return err
    		}
    		if ts[0].Nsec == UTIME_OMIT {
    			atime = int64(st.Atime)
    		}
    		if ts[1].Nsec == UTIME_OMIT {
    			mtime = int64(st.Mtime)
    		}
    	}
    	errno := path_filestat_set_times(
    		dirFd,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  9. src/log/slog/value.go

    		// mistaken for any other Value, time.Time or otherwise.
    		return Value{any: timeLocation(nil)}
    	}
    	nsec := v.UnixNano()
    	t := time.Unix(0, nsec)
    	if v.Equal(t) {
    		// UnixNano correctly represents the time, so use a zero-alloc representation.
    		return Value{num: uint64(nsec), any: timeLocation(v.Location())}
    	}
    	// Fall back to the general form.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:12:08 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  10. src/runtime/os_plan9.go

    //go:nosplit
    func usleep(µs uint32) {
    	ms := int32(µs / 1000)
    	if ms == 0 {
    		ms = 1
    	}
    	sleep(ms)
    }
    
    //go:nosplit
    func usleep_no_g(usec uint32) {
    	usleep(usec)
    }
    
    //go:nosplit
    func nanotime1() int64 {
    	var scratch int64
    	ns := nsec(&scratch)
    	// TODO(aram): remove hack after I fix _nsec in the pc64 kernel.
    	if ns == 0 {
    		return scratch
    	}
    	return ns
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top