projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
8b5254634624a612be6a44dedab725bdc8bcaa01
[dotfiles/.git]
/
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
}