projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
.gitignore added
[dotfiles/.git]
/
.config
/
coc
/
extensions
/
coc-go-data
/
tools
/
pkg
/
mod
/
golang.org
/
x
/
tools@v0.1.1-0.20210319172145-bda8f5cee399
/
refactor
/
eg
/
testdata
/
B1.golden
1
package B1
2
3
import "time"
4
5
var startup = time.Now()
6
7
func example() time.Duration {
8
before := time.Now()
9
time.Sleep(1)
10
return time.Since(before)
11
}
12
13
func msSinceStartup() int64 {
14
return int64(time.Since(startup) / time.Millisecond)
15
}