1 // Copyright 2011 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.
11 // Return current time. This is the implementation of time.walltime().
19 struct walltime_ret
now(void) __asm__ (GOSYM_PREFIX
"runtime.walltime")
20 __attribute__ ((no_split_stack
));
26 struct walltime_ret ret
;
28 clock_gettime (CLOCK_REALTIME
, &ts
);
30 ret
.nsec
= ts
.tv_nsec
;