mirror of https://github.com/golang/go.git
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:
parent
fb2c66710c
commit
a27e61e2fe
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue