summaryrefslogtreecommitdiff
path: root/libgo/runtime
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-07 01:11:29 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-07 01:11:29 +0000
commit8388e3abaaaa0546c5f1c87a68e583958063cde9 (patch)
tree84f27a6ab44d932e4b0455f18390b070b4de626e /libgo/runtime
parentbc461ec935abe0c6f3e92be027143b4f25b5682f (diff)
downloadgcc-8388e3abaaaa0546c5f1c87a68e583958063cde9.tar.gz
libgo: Update to weekly 2011-11-09.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182073 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/runtime')
-rw-r--r--libgo/runtime/time.goc13
1 files changed, 13 insertions, 0 deletions
diff --git a/libgo/runtime/time.goc b/libgo/runtime/time.goc
new file mode 100644
index 00000000000..f5a412a710f
--- /dev/null
+++ b/libgo/runtime/time.goc
@@ -0,0 +1,13 @@
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// Runtime implementations to help package time.
+
+package time
+
+#include "runtime.h"
+
+func Nanoseconds() (ret int64) {
+ ret = runtime_nanotime();
+}