Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.0.0-20201105173854-bc9fc8d8c4bc / refactor / eg / testdata / B1.go
1 // +build ignore
2
3 package B1
4
5 import "time"
6
7 var startup = time.Now()
8
9 func example() time.Duration {
10         before := time.Now()
11         time.Sleep(1)
12         return time.Now().Sub(before)
13 }
14
15 func msSinceStartup() int64 {
16         return int64(time.Now().Sub(startup) / time.Millisecond)
17 }