Lines Matching full:nsec
9 Nsec int32
17 func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) }
19 func NsecToTimespec(nsec int64) (ts Timespec) {
20 ts.Sec = int64(nsec / 1e9)
21 ts.Nsec = int32(nsec % 1e9)
27 func NsecToTimeval(nsec int64) (tv Timeval) {
28 nsec += 999 // round up to microsecond
29 tv.Usec = int32(nsec % 1e9 / 1e3)
30 tv.Sec = int64(nsec / 1e9)