runtime: scan register backing store on ia64
[official-gcc.git] / libgo / go / runtime / timestub.go
blob033734ed92f0b29808fd7af68421c5efb26c70d6
1 // Copyright 2017 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 // Declarations for operating systems implementing time.now
6 // indirectly, in terms of walltime and nanotime assembly.
8 // -build !darwin !amd64,!386
9 // -build !windows
11 package runtime
13 import _ "unsafe" // for go:linkname
15 func walltime() (sec int64, nsec int32)
17 //go:linkname time_now time.now
18 func time_now() (sec int64, nsec int32, mono int64) {
19 sec, nsec = walltime()
20 return sec, nsec, nanotime() - startNano