github.com/llvm-mirror/llgo@v0.0.0-20190322182713-bf6f0a60fce1/third_party/gofrontend/libgo/go/syscall/syscall_solaris.go (about) 1 // Copyright 2012 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package syscall 6 7 func (ts *Timestruc) Unix() (sec int64, nsec int64) { 8 return int64(ts.Sec), int64(ts.Nsec) 9 } 10 11 func (ts *Timestruc) Nano() int64 { 12 return int64(ts.Sec)*1e9 + int64(ts.Nsec) 13 }