mirror of
https://github.com/golang/go
synced 2024-11-19 18:54:41 -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:
parent
71630337f2
commit
a005617c5a
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user