]> Cypherpunks repositories - gostls13.git/commit
time: use 1e9 rather than 1e-9 in Duration calculations
authorIan Lance Taylor <iant@golang.org>
Fri, 11 Nov 2016 01:10:45 +0000 (17:10 -0800)
committerIan Lance Taylor <iant@golang.org>
Sat, 12 Nov 2016 01:18:26 +0000 (01:18 +0000)
commit456f2f5cb8c2e06e7faba6ba298ffb65c7a19397
tree0f06776cd7d2a1f3d9d20aca095d24b38e450b43
parent5b147122d6094b792a027b892884b994fe77a4d6
time: use 1e9 rather than 1e-9 in Duration calculations

1e-9 has a 1 in the last place, causing some Duration calculations to
have unnecessary rounding errors.  1e9 does not, so use that instead.

Change-Id: I96334a2c47e7a014b532eb4b8a3ef9550e7ed057
Reviewed-on: https://go-review.googlesource.com/33116
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/time/time.go
src/time/time_test.go