Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 121 for Nsec (0.04 sec)

  1. src/time/time.go

    		offsetMin = int16(offset)
    	}
    
    	sec := t.sec()
    	nsec := t.nsec()
    	enc := []byte{
    		version,         // byte 0 : version
    		byte(sec >> 56), // bytes 1-8: seconds
    		byte(sec >> 48),
    		byte(sec >> 40),
    		byte(sec >> 32),
    		byte(sec >> 24),
    		byte(sec >> 16),
    		byte(sec >> 8),
    		byte(sec),
    		byte(nsec >> 24), // bytes 9-12: nanoseconds
    		byte(nsec >> 16),
    		byte(nsec >> 8),
    		byte(nsec),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  2. src/runtime/timestub.go

    //   - github.com/ulule/limiter/v3
    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    //go:linkname time_now time.now
    func time_now() (sec int64, nsec int32, mono int64) {
    	sec, nsec = walltime()
    	return sec, nsec, nanotime()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 889 bytes
    - Viewed (0)
  3. src/time/time_test.go

    func abs(t Time) (sec, nsec int64) {
    	unix := t.Unix()
    	nano := t.Nanosecond()
    	return unix + unixToZero, int64(nano)
    }
    
    // absString returns abs as a decimal string.
    func absString(t Time) string {
    	sec, nsec := abs(t)
    	if sec < 0 {
    		sec = -sec
    		nsec = -nsec
    		if nsec < 0 {
    			nsec += 1e9
    			sec--
    		}
    		return fmt.Sprintf("-%d%09d", sec, nsec)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go

    }
    
    // DateMicro returns the MicroTime corresponding to the supplied parameters
    // by wrapping time.Date.
    func DateMicro(year int, month time.Month, day, hour, min, sec, nsec int, loc *time.Location) MicroTime {
    	return MicroTime{time.Date(year, month, day, hour, min, sec, nsec, loc)}
    }
    
    // NowMicro returns the current local time.
    func NowMicro() MicroTime {
    	return MicroTime{time.Now()}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. 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)
  6. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time.go

    	return Time{time}
    }
    
    // Date returns the Time corresponding to the supplied parameters
    // by wrapping time.Date.
    func Date(year int, month time.Month, day, hour, min, sec, nsec int, loc *time.Location) Time {
    	return Time{time.Date(year, month, day, hour, min, sec, nsec, loc)}
    }
    
    // Now returns the current local time.
    func Now() Time {
    	return Time{time.Now()}
    }
    
    // IsZero returns true if the value is nil or time is zero.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. src/os/stat_aix.go

    		fs.mode |= ModeSetuid
    	}
    	if fs.sys.Mode&syscall.S_ISVTX != 0 {
    		fs.mode |= ModeSticky
    	}
    }
    
    func stTimespecToTime(ts syscall.StTimespec_t) time.Time {
    	return time.Unix(int64(ts.Sec), int64(ts.Nsec))
    }
    
    // For testing.
    func atime(fi FileInfo) time.Time {
    	return stTimespecToTime(fi.Sys().(*syscall.Stat_t).Atim)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  10. src/runtime/time_fake.go

    	// changes.
    	lastfd uintptr
    }
    
    //go:linkname nanotime
    //go:nosplit
    func nanotime() int64 {
    	return faketime
    }
    
    //go:linkname time_now time.now
    func time_now() (sec int64, nsec int32, mono int64) {
    	return faketime / 1e9, int32(faketime % 1e9), faketime
    }
    
    // write is like the Unix write system call.
    // We have to avoid write barriers to avoid potential deadlock
    // on write calls.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:15:13 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top