1
0
mirror of https://github.com/golang/go synced 2024-11-19 21:44:49 -07:00

gotest: document unit of time for elapsed()

R=golang-dev
CC=golang-dev
https://golang.org/cl/4543044
This commit is contained in:
Robert Hencke 2011-05-12 22:00:14 -07:00 committed by Rob Pike
parent 71630337f2
commit a005617c5a

View File

@ -52,7 +52,7 @@ var (
xFlag bool
)
// elapsed returns time elapsed since gotest started.
// elapsed returns the number of seconds since gotest started.
func elapsed() float64 {
return float64(time.Nanoseconds()-start) / 1e9
}