diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-12-03 02:17:34 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-12-03 02:17:34 +0000 |
commit | 2fd401c8f190f1fe43e51a7f726f6ed6119a1f96 (patch) | |
tree | 7f76eff391f37fe6467ff4ffbc0c582c9959ea30 /libgo/go/time/sys.go | |
parent | 02e9018f1616b23f1276151797216717b3564202 (diff) | |
download | gcc-2fd401c8f190f1fe43e51a7f726f6ed6119a1f96.zip gcc-2fd401c8f190f1fe43e51a7f726f6ed6119a1f96.tar.gz gcc-2fd401c8f190f1fe43e51a7f726f6ed6119a1f96.tar.bz2 |
libgo: Update to weekly.2011-11-02.
From-SVN: r181964
Diffstat (limited to 'libgo/go/time/sys.go')
-rw-r--r-- | libgo/go/time/sys.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/time/sys.go b/libgo/go/time/sys.go index 9fde3b3..4bc9253 100644 --- a/libgo/go/time/sys.go +++ b/libgo/go/time/sys.go @@ -29,7 +29,7 @@ func Nanoseconds() int64 { // Sleep pauses the current goroutine for at least ns nanoseconds. // Higher resolution sleeping may be provided by syscall.Nanosleep // on some operating systems. -func Sleep(ns int64) os.Error { +func Sleep(ns int64) error { _, err := sleep(Nanoseconds(), ns) return err } @@ -37,7 +37,7 @@ func Sleep(ns int64) os.Error { // sleep takes the current time and a duration, // pauses for at least ns nanoseconds, and // returns the current time and an error. -func sleep(t, ns int64) (int64, os.Error) { +func sleep(t, ns int64) (int64, error) { // TODO(cw): use monotonic-time once it's available end := t + ns for t < end { |