2013-12-05 Richard Biener <rguenther@suse.de>
[official-gcc.git] / libgo / go / syscall / syscall_solaris.go
blobc1919171b7d5c62ae10bac23ab0735aad5a3eb18
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.
5 package syscall
7 func (ts *Timestruc) Unix() (sec int64, nsec int64) {
8 return int64(ts.Sec), int64(ts.Nsec)
11 func (ts *Timestruc) Nano() int64 {
12 return int64(ts.Sec)*1e9 + int64(ts.Nsec)