time bug: darwin, linux return microseconds not nanoseconds

R=r
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=15626
CL=15641
This commit is contained in:
Russ Cox 2008-09-22 13:46:57 -07:00
parent fb2c66710c
commit a27e61e2fe
2 changed files with 2 additions and 2 deletions

View File

@ -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
}

View File

@ -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
}