aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2008-09-22 13:46:57 -0700
committerRuss Cox <rsc@golang.org>2008-09-22 13:46:57 -0700
commita27e61e2fe3e32fa629c2e07b4e9c70ba8c3d13a (patch)
tree4d7f42d497dc972934ce14711a7b3f6829db1024 /src
parentfb2c66710cdf35120cdc35ea7ef01b5436f00b88 (diff)
downloadgo-a27e61e2fe3e32fa629c2e07b4e9c70ba8c3d13a.tar.xz
time bug: darwin, linux return microseconds not nanoseconds
R=r DELTA=2 (0 added, 0 deleted, 2 changed) OCL=15626 CL=15641
Diffstat (limited to 'src')
-rw-r--r--src/syscall/time_amd64_darwin.go2
-rw-r--r--src/syscall/time_amd64_linux.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/syscall/time_amd64_darwin.go b/src/syscall/time_amd64_darwin.go
index d4cdaa048e..4bcbe249f6 100644
--- a/src/syscall/time_amd64_darwin.go
+++ b/src/syscall/time_amd64_darwin.go
@@ -15,5 +15,5 @@ export func gettimeofday() (sec, nsec, errno int64) {
if err != 0 {
return 0, 0, err
}
- return r1, r2, 0
+ return r1, r2*1000, 0
}
diff --git a/src/syscall/time_amd64_linux.go b/src/syscall/time_amd64_linux.go
index 9feacf6546..71bd5658be 100644
--- a/src/syscall/time_amd64_linux.go
+++ b/src/syscall/time_amd64_linux.go
@@ -15,5 +15,5 @@ export func gettimeofday() (sec, nsec, errno int64) {
if err != 0 {
return 0, 0, err
}
- return tv[0], tv[1], 0
+ return tv[0], tv[1]*1000, 0
}