Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 968 for dsec (0.04 sec)

  1. src/time/time.go

    		return -d
    	}
    }
    
    // Add returns the time t+d.
    func (t Time) Add(d Duration) Time {
    	dsec := int64(d / 1e9)
    	nsec := t.nsec() + int32(d%1e9)
    	if nsec >= 1e9 {
    		dsec++
    		nsec -= 1e9
    	} else if nsec < 0 {
    		dsec--
    		nsec += 1e9
    	}
    	t.wall = t.wall&^nsecMask | uint64(nsec) // update nsec
    	t.addSec(dsec)
    	if t.wall&hasMonotonic != 0 {
    		te := t.ext + int64(d)
    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/cmd/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go

    	}
    	if t != nil {
    		*t = Time_t(tv.Sec)
    	}
    	return Time_t(tv.Sec), nil
    }
    
    //sys	Utime(path string, buf *Utimbuf) (err error)
    //sys	utimes(path string, times *[2]Timeval) (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: usec}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go

    //sysnb	Gettimeofday(tv *Timeval) (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: usec}
    }
    
    func futimesat(dirfd int, path string, tv *[2]Timeval) (err error) {
    	if tv == nil {
    		return utimensat(dirfd, path, nil, 0)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 6K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go

    //sysnb	Gettimeofday(tv *Timeval) (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: usec}
    }
    
    func futimesat(dirfd int, path string, tv *[2]Timeval) (err error) {
    	if tv == nil {
    		return utimensat(dirfd, path, nil, 0)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  5. 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)
  6. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go

    //sys	Utime(path string, buf *Utimbuf) (err error)
    //sys	utimes(path string, times *[2]Timeval) (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: usec}
    }
    
    func (r *PtraceRegs) PC() uint64 { return r.Nip }
    
    func (r *PtraceRegs) SetPC(pc uint64) { r.Nip = pc }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 5K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go

    		return 0, err
    	}
    	if t != nil {
    		*t = Time_t(tv.Sec)
    	}
    	return Time_t(tv.Sec), nil
    }
    
    //sys	Utime(path string, buf *Utimbuf) (err error)
    //sys	utimes(path string, times *[2]Timeval) (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)}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  8. src/syscall/syscall_linux_ppc64x.go

    	_, _, errno := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
    	return errno
    }
    
    func setTimespec(sec, nsec int64) Timespec {
    	return Timespec{Sec: sec, Nsec: nsec}
    }
    
    func setTimeval(sec, usec int64) Timeval {
    	return Timeval{Sec: sec, Usec: usec}
    }
    
    func (r *PtraceRegs) PC() uint64 { return r.Nip }
    
    func (r *PtraceRegs) SetPC(pc uint64) { r.Nip = pc }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  9. src/syscall/syscall_linux_arm64.go

    	var ts *Timespec
    	if timeout != nil {
    		ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
    	}
    	return pselect(nfd, r, w, e, ts, nil)
    }
    
    //sysnb	Gettimeofday(tv *Timeval) (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: usec}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  10. src/syscall/syscall_linux_riscv64.go

    	var ts *Timespec
    	if timeout != nil {
    		ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
    	}
    	return pselect(nfd, r, w, e, ts, nil)
    }
    
    //sysnb	Gettimeofday(tv *Timeval) (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: usec}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 5.8K bytes
    - Viewed (0)
Back to top