Sign in
go
/
tools
/
942994fc75ba3b8f8cbe2f1898518dcaa2aea50d
/
.
/
refactor
/
eg
/
testdata
/
B1.go
blob: 1e09c905d27c80c38118bc939fcb14468db73bcb [
file
] [
log
] [
blame
]
package B1
import "time"
var startup = time.Now()
func example() time.Duration {
before := time.Now()
time.Sleep(1)
return time.Now().Sub(before)
}
func msSinceStartup() int64 {
return int64(time.Now().Sub(startup) / time.Millisecond)
}