Commit a005617c authored by Robert Hencke's avatar Robert Hencke Committed by Rob Pike

gotest: document unit of time for elapsed()

R=golang-dev
CC=golang-dev
https://golang.org/cl/4543044
parent 71630337
...@@ -52,7 +52,7 @@ var ( ...@@ -52,7 +52,7 @@ var (
xFlag bool xFlag bool
) )
// elapsed returns time elapsed since gotest started. // elapsed returns the number of seconds since gotest started.
func elapsed() float64 { func elapsed() float64 {
return float64(time.Nanoseconds()-start) / 1e9 return float64(time.Nanoseconds()-start) / 1e9
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment