diff options
author | Felix Lange <fjl@twurst.com> | 2016-08-30 18:20:34 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-08-30 18:20:34 +0800 |
commit | 3b75d0ce2373c6e6da9af5f341d2d0aae0b4ed96 (patch) | |
tree | 596d8881580b2812d4a65e50ea14962cbea8334a /Godeps/_workspace/src/golang.org/x/sys/unix/syscall.go | |
parent | 969008dbb007bb3f05dd6f66b5a91cb38c21ab54 (diff) | |
download | dexon-3b75d0ce2373c6e6da9af5f341d2d0aae0b4ed96.tar dexon-3b75d0ce2373c6e6da9af5f341d2d0aae0b4ed96.tar.gz dexon-3b75d0ce2373c6e6da9af5f341d2d0aae0b4ed96.tar.bz2 dexon-3b75d0ce2373c6e6da9af5f341d2d0aae0b4ed96.tar.lz dexon-3b75d0ce2373c6e6da9af5f341d2d0aae0b4ed96.tar.xz dexon-3b75d0ce2373c6e6da9af5f341d2d0aae0b4ed96.tar.zst dexon-3b75d0ce2373c6e6da9af5f341d2d0aae0b4ed96.zip |
Godeps: update golang.org/x/...
Diffstat (limited to 'Godeps/_workspace/src/golang.org/x/sys/unix/syscall.go')
-rw-r--r-- | Godeps/_workspace/src/golang.org/x/sys/unix/syscall.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Godeps/_workspace/src/golang.org/x/sys/unix/syscall.go b/Godeps/_workspace/src/golang.org/x/sys/unix/syscall.go index a48d47cff..571e6993c 100644 --- a/Godeps/_workspace/src/golang.org/x/sys/unix/syscall.go +++ b/Godeps/_workspace/src/golang.org/x/sys/unix/syscall.go @@ -68,6 +68,8 @@ func (tv *Timeval) Nano() int64 { return int64(tv.Sec)*1e9 + int64(tv.Usec)*1000 } +func TimevalToNsec(tv Timeval) int64 { return int64(tv.Sec)*1e9 + int64(tv.Usec)*1e3 } + // use is a no-op, but the compiler cannot see that it is. // Calling use(p) ensures that p is kept live until that point. //go:noescape |