From 7b1c3dd9e670da2041ff1af415999310f88888ad Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 13 Dec 2011 19:16:27 +0000 Subject: libgo: Update to weekly.2011-12-02. From-SVN: r182295 --- libgo/runtime/go-nanotime.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'libgo/runtime/go-nanotime.c') diff --git a/libgo/runtime/go-nanotime.c b/libgo/runtime/go-nanotime.c index 197fb15..7e5e3e0 100644 --- a/libgo/runtime/go-nanotime.c +++ b/libgo/runtime/go-nanotime.c @@ -6,17 +6,16 @@ #include -#include "go-assert.h" #include "runtime.h" +int64 runtime_nanotime (void) + __attribute__ ((no_split_stack)); + int64 runtime_nanotime (void) { - int i; struct timeval tv; - i = gettimeofday (&tv, NULL); - __go_assert (i == 0); - + gettimeofday (&tv, NULL); return (int64) tv.tv_sec * 1000000000 + (int64) tv.tv_usec * 1000; } -- cgit v1.1